Файли
openidea/src/features/database/Diagram.module.css
T
l0ng-ai e909c50fe4 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)
2026-11-26 20:43:02 +08:00

122 рядки
2.0 KiB
CSS

.root {
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
background: var(--bg-editor, var(--bg-app));
color: var(--fg);
outline: none;
}
.toolbar {
flex: none;
display: flex;
align-items: center;
gap: var(--space-0-5);
min-height: calc(var(--h-control) + var(--space-2));
padding: var(--space-1) var(--space-2);
border-bottom: 1px solid var(--border-editor-tabs, var(--border));
}
.separator {
align-self: stretch;
width: 1px;
margin: var(--space-0-5) var(--space-1);
background: var(--border-strong);
}
.zoom {
margin-inline-start: auto;
font-size: var(--fs-ui);
font-variant-numeric: tabular-nums;
color: var(--fg-secondary);
}
.canvas {
flex: 1;
min-height: 0;
position: relative;
overflow: hidden;
cursor: grab;
touch-action: none;
user-select: none;
}
.canvas > svg {
display: block;
width: 100%;
height: 100%;
}
.panning {
cursor: grabbing;
}
.message {
position: absolute;
inset: 0;
display: grid;
place-items: center;
color: var(--fg-secondary);
}
.table {
cursor: default;
}
.body {
fill: var(--bg-elev, var(--bg-editor));
stroke: var(--border-strong);
}
.header {
fill: var(--bg-hover, var(--bg-elev));
}
.title {
font-family: var(--font-ui);
font-size: var(--fs-small);
font-weight: 600;
fill: var(--fg-strong, var(--fg));
}
.name {
font-family: var(--font-ui);
font-size: var(--fs-small);
fill: var(--fg);
}
.type {
font-family: var(--font-ui);
font-size: var(--fs-small);
fill: var(--fg-secondary);
}
.badge {
font-family: var(--font-ui);
font-size: var(--fs-tiny, 10px);
font-weight: 600;
fill: var(--accent);
}
.toggle {
cursor: default;
}
.toggle > rect {
fill: transparent;
}
.toggle:hover > rect {
fill: var(--bg-toolbar-hover, var(--bg-hover));
}
.selection {
fill: none;
stroke: var(--focus-ring, var(--accent));
stroke-width: 2;
}
.link {
fill: none;
stroke: var(--fg-secondary);
stroke-width: 1.2;
}
.optional {
stroke-dasharray: 5 3;
}
.arrow {
fill: var(--fg-secondary);
}
.popup {
height: min(600px, 100%);
}