Skip to content

Commit d08a744

Browse files
committed
fix(titlebar): make pagination dots clickable on Linux
The injected [data-tauri-drag-region] no-drag rule only matches descendant buttons. On Linux the dots are a sibling overlay over the drag region, so the OS drag region swallowed their clicks. Mark .focus-mode-task-indicator no-drag to carve it out.
1 parent d174694 commit d08a744

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/styles.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,6 +1771,11 @@ body.dragging-task * {
17711771
cursor: pointer;
17721772
opacity: 0.7;
17731773
pointer-events: auto;
1774+
/* Carve the dots out of the OS window-drag region. On Linux the titlebar's
1775+
[data-tauri-drag-region] is a sibling the dots overlay (not an ancestor),
1776+
so main.ts's injected `[data-tauri-drag-region] button { no-drag }` rule
1777+
can't reach them and the drag region swallows the click. */
1778+
-webkit-app-region: no-drag;
17741779
}
17751780

17761781
.focus-mode-task-indicator::before {

0 commit comments

Comments
 (0)