vitepress icon indicating copy to clipboard operation
vitepress copied to clipboard

unable to default to detailedView in local search

Open pberto opened this issue 1 year ago • 2 comments

Describe the bug

According to changeling this should be possible, but I cannot manage to make this work. I think this is an option of vitepress and not of mini search so it should fallback into the search options in themeconfog. I tried this:

Reproduction

I am using this:

 themeConfig: {   
    ...
    search: {
      provider: 'local',
      options: {
        detailedView: true
      }
    }

Expected behavior

I expect to be able to click search and have the detailed view ON instead than OFF by default.

System Info

rc40, macOS, safari.

Additional context

No response

Validations

pberto avatar Jan 24 '24 23:01 pberto

It seems to be working fine for me. You probably had earlier toggled it. Try opening in incognito, it should be open by default.

brc-dd avatar Jan 25 '24 07:01 brc-dd

I have the same issue in Safari, and only Safari. Indeed, if I open my browser in incognito, search previews are open by default. However, if is not in this mode no previews are available at all. Firefox works well on either mode.

lazarusA avatar Feb 01 '24 22:02 lazarusA