Skip to content

fix(windows-titlebar): make full top strip draggable across sidebar and content - #131

Merged
yaojin3616 merged 1 commit into
mainfrom
fix/windows-titlebar-sidebar-drag
Aug 21, 2026
Merged

fix(windows-titlebar): make full top strip draggable across sidebar and content#131
yaojin3616 merged 1 commit into
mainfrom
fix/windows-titlebar-sidebar-drag

Conversation

@yaojin3616

Copy link
Copy Markdown
Contributor

Summary of Fixes

  1. Top strip draggable across full window width: Changed .safeArea::before to left: 0; right: 44px; height: 36px; pointer-events: none; -webkit-app-region: drag; so both sidebar header space and main header space can drag the window on Windows.
  2. Interactive controls protected from dragging: Added -webkit-app-region: no-drag !important to all interactive controls (button, a, input, select, textarea, [role="button"]) so sidebar collapse/expand toggle and header buttons remain fully clickable and responsive.
  3. Sidebar width tracking fallback: Updated trackSidebarLayout so when the sidebar is collapsed or missing, --dsh-desktop-windows-sidebar-width is properly updated to 0px instead of being ignored.

Fixes #121

@yaojin3616
yaojin3616 merged commit c664e8f into main Aug 21, 2026
2 of 4 checks passed
@yaojin3616
yaojin3616 deleted the fix/windows-titlebar-sidebar-drag branch August 21, 2026 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Windows] Window cannot be dragged by the title bar (drag region only 5px tall)

1 participant