sanyuan0704 / island.js

📝 Vite & MDX powered static site generator. Base on islands architecture

Home Page:https://islandjs.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The sidebar did not collapse automatically after clicking on a SidebarItem.

codersjj opened this issue · comments

commented

Describe the bug

On narrow screen devices, the sidebar did not collapse automatically after clicking on a SidebarItem.

sidebar-collapse

Reproduction

See: https://codesandbox.io/p/sandbox/ancient-tdd-zlh9qn?file=%2Fisland-app%2Fdocs%2F.island%2Fconfig.ts%3A44%2C7

Expected behavior

On narrow screen devices, the sidebar collapses automatically after clicking on a SidebarItem.

System Info

-

Additional context

No response

Validations

  • Read the docs
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

Yes, we optimize this behavior by closing the sidebar after clicking other sidebar item. PR welcome!