mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
Add a resize handle on the sidebar edge, like resizing a spreadsheet column (mirrors the list resize in client/components/lists/list.js). Drag it to change the sidebar width; the width is saved to profile.sidebarWidth for logged-in users and to browser localStorage (wekan-sidebar-width) for anonymous users on a public board, then re-applied on load. - The handle uses the LOGICAL inset-inline-start, so in LTR it is the left edge of the right-docked sidebar and in RTL it is the RIGHT edge of the left-docked sidebar; the drag direction inverts for RTL so dragging always widens/narrows the visible panel correctly. - Desktop only: on phones (<=800px) the handle is hidden and the sidebar stays full width (the 100vw rule is now !important so a desktop inline width can never leak into mobile). - Width is clamped (min 280px, capped near the viewport) and re-applied on window resize so crossing the mobile breakpoint clears/restores it. New profile.sidebarWidth schema field + getSidebarWidth/setSidebarWidth helpers, setSidebarWidth Meteor method, i18n (en, fi), and source-guard test tests/sidebarResize.test.cjs. Thanks to xet7 !