дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 18:17:15 +02:00
fix(ui): use default arrow cursors on non-link controls across the IDE (#6167)
## Summary - Align non-link UI controls across the IDE with desktop IDE cursor conventions (`cursor: default` for controls, reserving `cursor: pointer` for links and editor canvas/gutter jump markers), matching `src/styles/global.css`. - **VCS / Diff / Merge**: switch split diff divider apply arrows (`>>` / `<<`), hunk gutter buttons, hover Revert button, commit-inclusion checkboxes (`.cm-include-hunk`), collapsed-lines toggle, PR review gutter `+` button, three-way merge op buttons, branch star button, and merge/rebase widget buttons to `default`; add `var(--bg-toolbar-hover)` hover background to diff divider arrows so interactivity stays clear. - **Workbench / Tool Windows / Popups**: remove `cursor: pointer` from buttons, checkboxes, tabs, list items, sortable table headers, and disclosure toggles across Settings, Tools, Plugins, Deployment, Search, Todo, Run, Services (keeping `pointer` on `.portChipLink`), Database, GitHub, Notebook, Viewers, Debugger, and LSP popups. ## Test plan - [x] Verified formatting and lint via `oxfmt` / `oxlint` - [x] Ran `pnpm vitest run src/features/vcs src/editor/lsp` (245 test files, 3330 tests passing) Made with [Cursor](https://cursor.com)
Цей коміт міститься в:
1 джерело
da7125a944
коміт
e909c50fe4
28 files changed
+8
-57
No files matched your search
@@ -264,7 +264,6 @@ export const lspTheme = EditorView.theme({
|
||||
background: "none",
|
||||
color: "var(--fg-subtle)",
|
||||
font: "inherit",
|
||||
cursor: "pointer",
|
||||
},
|
||||
".cm-lsp-completion-sort:hover": { color: "var(--fg)" },
|
||||
'.cm-lsp-completion-sort[aria-pressed="true"]': { color: "var(--link)" },
|
||||
@@ -519,7 +518,6 @@ export const lspTheme = EditorView.theme({
|
||||
whiteSpace: "nowrap",
|
||||
overflow: "hidden",
|
||||
textOverflow: "ellipsis",
|
||||
cursor: "pointer",
|
||||
},
|
||||
".cm-lsp-inplace-suggestions button:hover": { backgroundColor: "var(--bg-hover)" },
|
||||
'.cm-lsp-inplace-suggestions button[aria-current="true"]': {
|
||||
|
||||
@@ -38,9 +38,6 @@
|
||||
white-space: nowrap;
|
||||
color: var(--fg-strong);
|
||||
}
|
||||
.sortable {
|
||||
cursor: pointer;
|
||||
}
|
||||
.sortable:hover {
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
@@ -855,7 +852,6 @@
|
||||
border-radius: var(--radius-small);
|
||||
background: transparent;
|
||||
color: var(--fg-secondary);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Parameter info in `VALUES (…)`. */
|
||||
@@ -1096,7 +1092,6 @@
|
||||
border-radius: var(--radius-small);
|
||||
background: transparent;
|
||||
color: var(--fg-muted);
|
||||
cursor: pointer;
|
||||
}
|
||||
.headerFilter:hover {
|
||||
background: var(--bg-hover);
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
fill: var(--accent);
|
||||
}
|
||||
.toggle {
|
||||
cursor: pointer;
|
||||
cursor: default;
|
||||
}
|
||||
.toggle > rect {
|
||||
fill: transparent;
|
||||
|
||||
@@ -222,7 +222,6 @@
|
||||
border-radius: var(--radius-small);
|
||||
background: transparent;
|
||||
color: var(--fg-muted);
|
||||
cursor: pointer;
|
||||
}
|
||||
.valueExpand:hover {
|
||||
background: var(--bg-hover, transparent);
|
||||
@@ -262,7 +261,6 @@
|
||||
background: var(--bg-popup);
|
||||
box-shadow: var(--shadow-tooltip);
|
||||
color: var(--fg);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.runToCursor:hover {
|
||||
|
||||
@@ -159,7 +159,6 @@
|
||||
color: var(--fg-muted);
|
||||
background: transparent;
|
||||
font-size: 19px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.filterButton[aria-pressed="true"] {
|
||||
background: var(--bg-tree-hover);
|
||||
|
||||
@@ -364,7 +364,6 @@
|
||||
border-radius: 0 var(--radius-control, 4px) var(--radius-control, 4px) 0;
|
||||
background: var(--bg-button-primary);
|
||||
color: var(--fg-button-primary);
|
||||
cursor: pointer;
|
||||
}
|
||||
.optionArrow:disabled {
|
||||
opacity: 0.5;
|
||||
|
||||
@@ -132,7 +132,6 @@
|
||||
border: none;
|
||||
background: none;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
.branchLink {
|
||||
min-width: 0;
|
||||
@@ -325,7 +324,6 @@
|
||||
border: 1px solid var(--border-checkbox);
|
||||
border-radius: 3px;
|
||||
background: var(--bg-checkbox);
|
||||
cursor: pointer;
|
||||
}
|
||||
.viewedChecked {
|
||||
border-color: var(--accent);
|
||||
@@ -334,7 +332,6 @@
|
||||
}
|
||||
.editSource {
|
||||
display: inline-flex;
|
||||
cursor: pointer;
|
||||
}
|
||||
.onHover {
|
||||
display: none;
|
||||
@@ -426,7 +423,6 @@
|
||||
border-bottom-right-radius: var(--radius-control);
|
||||
background: var(--bg-button);
|
||||
color: var(--fg);
|
||||
cursor: pointer;
|
||||
}
|
||||
.optionArrow:hover {
|
||||
background: var(--bg-control-hover);
|
||||
|
||||
@@ -208,7 +208,6 @@
|
||||
gap: var(--space-1-5);
|
||||
padding: 2px 8px;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
}
|
||||
.mention[data-active] {
|
||||
background: var(--bg-list-selected);
|
||||
@@ -233,7 +232,6 @@
|
||||
color: var(--fg);
|
||||
font: inherit;
|
||||
font-size: 11px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.pill:hover:not(:disabled) {
|
||||
background: var(--gh-reaction-bg-hover);
|
||||
@@ -263,7 +261,6 @@
|
||||
background: none;
|
||||
font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
|
||||
font-size: 22px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.pickerEmoji:hover,
|
||||
.pickerEmoji[data-own] {
|
||||
|
||||
@@ -120,7 +120,6 @@
|
||||
background: none;
|
||||
color: var(--fg-muted);
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
.collapsedCell {
|
||||
padding: 6px 12px;
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
color: var(--fg-muted);
|
||||
font-family: var(--font-ui);
|
||||
font-size: var(--fs-small);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.button {
|
||||
|
||||
@@ -98,7 +98,6 @@
|
||||
background: none;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
.groupToggle:hover {
|
||||
color: var(--fg);
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
font: inherit;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.textButton:hover:not(:disabled) {
|
||||
@@ -173,7 +172,6 @@
|
||||
|
||||
/* A sortable table's header: clickable, the sorted one marked by an arrow. */
|
||||
.headerCell {
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
background: none;
|
||||
color: var(--fg-muted);
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
.agentArchive:hover {
|
||||
background: var(--bg-hover);
|
||||
@@ -1239,7 +1238,6 @@
|
||||
border-radius: 3px;
|
||||
padding: 0 6px;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
.fold:hover {
|
||||
color: var(--fg);
|
||||
@@ -1258,7 +1256,6 @@
|
||||
background: var(--bg-app);
|
||||
color: var(--fg-faint);
|
||||
vertical-align: top;
|
||||
cursor: pointer;
|
||||
}
|
||||
.foldToggle:hover {
|
||||
color: var(--fg);
|
||||
@@ -1392,7 +1389,6 @@
|
||||
box-shadow: inset 0 0 0 1px var(--border-button);
|
||||
color: var(--fg);
|
||||
font-size: var(--fs-ui);
|
||||
cursor: pointer;
|
||||
flex: none;
|
||||
}
|
||||
.tomcatDotsBtn:hover {
|
||||
@@ -1647,9 +1643,6 @@
|
||||
font-size: var(--fs-small);
|
||||
border-bottom: 1px solid var(--border-popup);
|
||||
}
|
||||
.tomcatLogRow {
|
||||
cursor: pointer;
|
||||
}
|
||||
.tomcatLogRow:hover {
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
@@ -1748,7 +1741,6 @@
|
||||
color: var(--fg-secondary);
|
||||
font-size: var(--fs-ui);
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
}
|
||||
.addServerDialogBody {
|
||||
display: flex;
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
color: var(--fg);
|
||||
font: inherit;
|
||||
font-size: var(--fs-small);
|
||||
cursor: pointer;
|
||||
}
|
||||
.key:hover {
|
||||
border-color: var(--accent);
|
||||
|
||||
@@ -130,7 +130,6 @@
|
||||
color: var(--fg);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
.locationsLink:hover {
|
||||
color: var(--fg-strong);
|
||||
|
||||
@@ -336,7 +336,6 @@
|
||||
font-family: var(--font-ui);
|
||||
font-size: var(--fs-tiny);
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
}
|
||||
.commandToggle:hover {
|
||||
background: var(--bg-hover);
|
||||
@@ -465,7 +464,6 @@
|
||||
color: var(--fg);
|
||||
font: inherit;
|
||||
font-size: var(--fs-small);
|
||||
cursor: pointer;
|
||||
}
|
||||
.entityChip:disabled {
|
||||
cursor: default;
|
||||
@@ -479,6 +477,7 @@ button.entityChip:not(:disabled):hover {
|
||||
}
|
||||
.portChipLink {
|
||||
color: var(--link);
|
||||
cursor: pointer;
|
||||
}
|
||||
.chipMeta {
|
||||
color: var(--fg-subtle);
|
||||
|
||||
@@ -535,7 +535,6 @@
|
||||
color: var(--fg-secondary);
|
||||
font: inherit;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
}
|
||||
.sectionTab:hover {
|
||||
background: var(--bg-toolbar-hover);
|
||||
@@ -602,7 +601,6 @@
|
||||
color: var(--fg);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
.sideItem:hover {
|
||||
background: var(--bg-hover);
|
||||
@@ -788,7 +786,6 @@
|
||||
color: var(--fg);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
.psNavItem > span {
|
||||
min-width: 0;
|
||||
|
||||
@@ -320,7 +320,6 @@
|
||||
.toolOptions > summary {
|
||||
width: fit-content;
|
||||
padding-block: var(--space-1);
|
||||
cursor: pointer;
|
||||
}
|
||||
.toolOptions > div {
|
||||
padding-top: var(--space-1);
|
||||
|
||||
@@ -50,9 +50,6 @@
|
||||
max-block-size: 45%;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.skippedSummary summary {
|
||||
cursor: pointer;
|
||||
}
|
||||
.skippedOnly h3 {
|
||||
margin: 0;
|
||||
font: inherit;
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
background: none;
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
.sectionToggle:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
|
||||
@@ -184,7 +184,6 @@
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--fg-subtle);
|
||||
cursor: pointer;
|
||||
}
|
||||
.star > * {
|
||||
grid-area: 1 / 1;
|
||||
|
||||
@@ -232,7 +232,7 @@
|
||||
}
|
||||
.host :global(.cm-merge-revert button:hover) {
|
||||
color: var(--fg-strong);
|
||||
background: transparent;
|
||||
background: var(--bg-toolbar-hover);
|
||||
}
|
||||
.hunkGutter {
|
||||
min-width: var(--h-row);
|
||||
@@ -256,7 +256,6 @@
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
color: var(--fg-secondary);
|
||||
cursor: pointer;
|
||||
}
|
||||
.hunkButtons > button:hover,
|
||||
.hunkButtons > button:focus-visible {
|
||||
@@ -280,7 +279,7 @@
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
cursor: default;
|
||||
}
|
||||
.host :global(.cm-diffHoverLine) {
|
||||
position: relative;
|
||||
@@ -301,7 +300,6 @@
|
||||
color: var(--fg-secondary);
|
||||
font-family: var(--font-ui);
|
||||
font-size: var(--fs-tiny);
|
||||
cursor: pointer;
|
||||
}
|
||||
.host :global(.cm-diffHoverRevert:hover) {
|
||||
color: var(--fg-strong);
|
||||
@@ -412,7 +410,7 @@
|
||||
border-radius: var(--radius-small);
|
||||
background: none;
|
||||
color: var(--fg-subtle);
|
||||
cursor: pointer;
|
||||
cursor: default;
|
||||
}
|
||||
.host :global(.cm-diffDivider button.cm-diffArrow-a-to-b) {
|
||||
left: 0;
|
||||
@@ -428,7 +426,7 @@
|
||||
}
|
||||
.host :global(.cm-diffDivider button.cm-diffArrow:hover) {
|
||||
color: var(--fg-strong);
|
||||
background: transparent;
|
||||
background: var(--bg-toolbar-hover);
|
||||
}
|
||||
/* Where the other pane has lines this one lacks. */
|
||||
.host :global(.cm-diffGap-inserted) {
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: var(--radius-toolbar-button);
|
||||
cursor: pointer;
|
||||
}
|
||||
.go {
|
||||
background: var(--success);
|
||||
|
||||
@@ -523,7 +523,6 @@ export const viewerTheme = EditorView.theme(
|
||||
fontSize: "var(--fs-ui)",
|
||||
lineHeight: "1.4",
|
||||
textAlign: "start",
|
||||
cursor: "pointer",
|
||||
},
|
||||
".cm-collapsedLines > button:hover, .cm-collapsedLines > button:focus-visible": {
|
||||
backgroundColor: "var(--bg-hover)",
|
||||
|
||||
@@ -193,7 +193,7 @@ class CheckboxMarker extends GutterMarker {
|
||||
|
||||
const theme = EditorView.baseTheme({
|
||||
".cm-include-gutter .cm-gutterElement": { display: "flex", alignItems: "center", padding: "0 2px" },
|
||||
".cm-include-hunk": { margin: 0, width: "12px", height: "12px", accentColor: "var(--accent)", cursor: "pointer" },
|
||||
".cm-include-hunk": { margin: 0, width: "12px", height: "12px", accentColor: "var(--accent)", cursor: "default" },
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
@@ -246,7 +246,6 @@ export const mergeTheme = EditorView.baseTheme({
|
||||
borderRadius: "var(--radius-small)",
|
||||
color: "var(--fg-secondary)",
|
||||
background: "transparent",
|
||||
cursor: "pointer",
|
||||
},
|
||||
".cm-merge-op:hover": { color: "var(--fg-strong)", background: "var(--bg-control-hover)" },
|
||||
".cm-merge-conflict": { backgroundColor: "color-mix(in srgb, var(--vcs-conflict) 14%, transparent)" },
|
||||
|
||||
@@ -343,7 +343,7 @@ const theme = EditorView.baseTheme({
|
||||
height: "var(--cm-review-line, 1.4em)",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
cursor: "pointer",
|
||||
cursor: "default",
|
||||
},
|
||||
".cm-reviewHandle": {
|
||||
position: "absolute",
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
border-radius: var(--radius-small);
|
||||
background: var(--bg-elev);
|
||||
color: var(--fg-secondary);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
.tool:hover {
|
||||
|
||||
Reference in new issue
Заблокувати користувача