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.
This commit is contained in:
Bohdan Triapitsyn
2026-06-10 02:06:35 +03:00
parent b27e8efb5f
commit e685ef67f0
+15
View File
@@ -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;
}