mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 16:04:21 +00:00
The query console's Data source dropdown mixed databases into the source list, and SQL Server's second dropdown listed databases. As in DataGrip, the dropdown now lists data sources only, and a database.schema switcher next to it opens a searchable database -> schema tree that loads a database's schemas on expand and moves the console to the picked database; one-level drivers keep a flat schema list and SQLite has none. SQL Server's console schema is now a real schema (SCHEMA_NAME()) that scopes resolution and completion, since a session's default schema can't be changed, while the pooled connection still returns to its database. Tree speed search also opens with Cmd/Ctrl+F, as in IDEA. Closes #4577 Co-authored-by: faizanalhassan <53539447+faizanalhassan@users.noreply.github.com>
178 lines
3.6 KiB
CSS
178 lines
3.6 KiB
CSS
/* ComboBox: same frame as text fields, 28px, ComboBox.padding 1,9,1,6, chevron in the arrow area. */
|
|
.trigger {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-1-5);
|
|
height: var(--h-field, 28px);
|
|
min-width: 0;
|
|
padding: 0 6px 0 9px;
|
|
border-radius: var(--radius-control, 4px);
|
|
color: var(--fg-strong);
|
|
transition:
|
|
background var(--dur-fast) var(--ease),
|
|
box-shadow var(--dur-fast) var(--ease);
|
|
}
|
|
.framed {
|
|
background: var(--bg-field, var(--bg-button));
|
|
box-shadow: inset 0 0 0 1px var(--border-button);
|
|
}
|
|
.framed[aria-expanded="true"],
|
|
.framed:focus-visible {
|
|
outline: none;
|
|
box-shadow:
|
|
inset 0 0 0 1px var(--focus-ring),
|
|
0 0 0 1px var(--focus-ring);
|
|
}
|
|
.framed:disabled {
|
|
background: transparent;
|
|
color: var(--fg-faint);
|
|
box-shadow: inset 0 0 0 1px var(--border);
|
|
}
|
|
.ghost {
|
|
height: var(--h-control);
|
|
color: var(--fg-secondary);
|
|
padding: 0 4px 0 6px;
|
|
}
|
|
.ghost:hover,
|
|
.ghost[aria-expanded="true"] {
|
|
background: var(--bg-toolbar-hover);
|
|
color: var(--fg-strong);
|
|
}
|
|
/* A picker that reads as a chip beside the facts it belongs with (Chip). */
|
|
.chip {
|
|
composes: surface from "./Chip.module.css";
|
|
padding: 0 4px 0 6px;
|
|
}
|
|
.chip:hover,
|
|
.chip[aria-expanded="true"] {
|
|
background: var(--bg-toolbar-hover);
|
|
color: var(--fg-strong);
|
|
}
|
|
.chip:focus-visible {
|
|
outline: none;
|
|
box-shadow:
|
|
inset 0 0 0 1px var(--focus-ring),
|
|
0 0 0 1px var(--focus-ring);
|
|
}
|
|
.value {
|
|
flex: 1;
|
|
min-width: 0;
|
|
text-align: left;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.placeholder {
|
|
color: var(--fg-faint);
|
|
}
|
|
.chevron {
|
|
color: var(--fg-muted);
|
|
}
|
|
.popup {
|
|
padding: 6px 0;
|
|
overflow: hidden;
|
|
}
|
|
.popupInner {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
/* Focus only carries keystrokes; the active row is the indicator. */
|
|
.popupInner:focus-visible {
|
|
outline: none;
|
|
}
|
|
.list {
|
|
max-height: 320px;
|
|
}
|
|
.check {
|
|
width: 12px;
|
|
flex: none;
|
|
color: var(--fg-muted);
|
|
}
|
|
.sizer {
|
|
height: 0;
|
|
overflow: hidden;
|
|
visibility: hidden;
|
|
}
|
|
/* Mirrors a List row: inset, padding and gap. */
|
|
.sizerRow {
|
|
display: flex;
|
|
gap: var(--space-1-5);
|
|
margin: 0 var(--list-inset, 6px);
|
|
padding: 0 8px;
|
|
white-space: nowrap;
|
|
}
|
|
/* Short details (a count, a command) widen the popup; long ones (paths, URLs) are cut. */
|
|
.sizerDetail {
|
|
max-width: 240px;
|
|
overflow: hidden;
|
|
}
|
|
.optionLabel {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
/* The label keeps its width (up to most of the row); a long detail (a path) is cut instead. */
|
|
.withDetail {
|
|
flex-shrink: 0;
|
|
max-width: 70%;
|
|
}
|
|
.detail {
|
|
flex: 0 1 auto;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--fg-muted);
|
|
}
|
|
.disabled {
|
|
color: var(--fg-faint);
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.trigger {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.framed {
|
|
border: 1px solid ButtonText;
|
|
}
|
|
}
|
|
|
|
.searchWrap {
|
|
padding: 4px 6px 6px;
|
|
}
|
|
.search {
|
|
width: 100%;
|
|
height: var(--h-field, 28px);
|
|
padding: 0 8px;
|
|
border-radius: var(--radius-control, 4px);
|
|
background: var(--bg-field, var(--bg-button));
|
|
box-shadow: inset 0 0 0 1px var(--border-button);
|
|
color: var(--fg-strong);
|
|
}
|
|
|
|
.option {
|
|
display: contents;
|
|
}
|
|
|
|
/* Tree rows: indentation plus room for the disclosure chevron. */
|
|
.treeIndent {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
flex: none;
|
|
width: calc(var(--tree-depth) * 16px + 12px);
|
|
color: var(--fg-muted);
|
|
}
|
|
|
|
.rowAction {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
flex: none;
|
|
margin-left: 2px;
|
|
}
|