From e685ef67f057acc4de94b6abfbb2cadd575876b4 Mon Sep 17 00:00:00 2001 From: Bohdan Triapitsyn Date: Wed, 10 Jun 2026 02:06:35 +0300 Subject: [PATCH] fix(desktop): use the native arrow cursor instead of the web hand cursor Desktop app windows should follow native conventions where clickable controls use the arrow cursor, not the web's pointer/hand. Under the desktop runtime only (web in a browser is unchanged), neutralize pointer cursors on buttons, role=button, links, summary/label, the cursor-pointer utility (and its hover/group-hover variants), and markdown file links. Resize, grab, text and not-allowed cursors are left intact. --- packages/ui/src/index.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/ui/src/index.css b/packages/ui/src/index.css index dc4de7f0..13707014 100644 --- a/packages/ui/src/index.css +++ b/packages/ui/src/index.css @@ -1568,3 +1568,18 @@ input[aria-label="Terminal input"] { [data-settings-view="true"] .overlay-scrollbar { display: none; } + +/* Desktop app shell (Electron/native window): native apps use the arrow cursor + for clickable controls, not the web's hand/pointer. Neutralize pointer + cursors under the desktop runtime only — web in a browser keeps them. + Resize/grab/text cursors are untouched. */ +html.desktop-runtime + :where(button, [role="button"], a[href], summary, label[for]):not(:disabled):not([aria-disabled="true"]) { + cursor: default; +} +html.desktop-runtime [class*="cursor-pointer"] { + cursor: default !important; +} +html.desktop-runtime .markdown-content [data-openchamber-file-link="true"] { + cursor: default; +}