дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 01:31:41 +02:00
Find in Terminal took a full-width row and shrank the grid. Wide, tall panes now show a compact search bar over the output's upper-right corner, keeping the full grid; it moves to the lower right when it would cover the active match. Short panes use an inline bar and narrow panes put the controls in two rows.
212 рядки
4.0 KiB
CSS
212 рядки
4.0 KiB
CSS
.root {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
background: var(--bg-island, var(--bg-app));
|
|
}
|
|
|
|
.tabs {
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.tabStrip {
|
|
min-width: 0;
|
|
border: 0;
|
|
background: none;
|
|
}
|
|
|
|
.tabActions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-0-5);
|
|
padding: 0 2px;
|
|
}
|
|
|
|
/* A tab group: its header (while split) over its tabs' terminals. */
|
|
.group {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
}
|
|
|
|
.output {
|
|
container: terminal-output / size;
|
|
flex: 1;
|
|
min-height: 0;
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.panels {
|
|
flex: 1;
|
|
position: relative;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* tab drag & drop target on a group: an edge splits, the middle joins (the editor's look) */
|
|
.dropZone {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 5;
|
|
pointer-events: none;
|
|
background: var(--accent-soft);
|
|
border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
|
|
}
|
|
.drop-left {
|
|
right: 50%;
|
|
}
|
|
.drop-right {
|
|
left: 50%;
|
|
}
|
|
.drop-top {
|
|
bottom: 50%;
|
|
}
|
|
.drop-bottom {
|
|
top: 50%;
|
|
}
|
|
|
|
.panel {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
}
|
|
.panel[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.split {
|
|
flex: 1;
|
|
}
|
|
|
|
.splitPanel {
|
|
display: flex;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
}
|
|
|
|
.pane {
|
|
flex: 1;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
padding: 6px 0 0 8px;
|
|
overflow: hidden;
|
|
outline: none;
|
|
position: relative;
|
|
}
|
|
|
|
.exited :global(.xterm-cursor-layer),
|
|
.exited :global(.xterm-cursor) {
|
|
visibility: hidden;
|
|
}
|
|
|
|
.pane :global(.xterm) {
|
|
height: 100%;
|
|
}
|
|
/* xterm's DOM renderer stretches the cursor cell over the whole row (line height
|
|
included); keep it to the font's own height, centred like the glyphs. */
|
|
.pane :global(.xterm-rows .xterm-cursor) {
|
|
position: relative;
|
|
top: 50%;
|
|
height: auto;
|
|
max-height: 100%;
|
|
line-height: normal;
|
|
transform: translateY(-50%);
|
|
}
|
|
.pane :global(.xterm-viewport) {
|
|
background-color: var(--bg-island, var(--bg-app)) !important;
|
|
}
|
|
.pane :global(.xterm-screen) {
|
|
isolation: isolate;
|
|
}
|
|
.pane :global(.openidea-terminal-selection-matches) {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: -1;
|
|
pointer-events: none;
|
|
}
|
|
.pane :global(.openidea-terminal-selection-match) {
|
|
position: absolute;
|
|
box-sizing: border-box;
|
|
border-radius: 2px;
|
|
background-color: var(--bg-identifier-under-caret, color-mix(in srgb, var(--fg) 9%, transparent));
|
|
outline: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
|
|
outline-offset: -1px;
|
|
}
|
|
.pane :global(.xterm-decoration-container) {
|
|
pointer-events: none;
|
|
}
|
|
.pane :global(.xterm .xterm-scrollable-element > .scrollbar > .slider) {
|
|
box-sizing: border-box;
|
|
border: 2px solid transparent;
|
|
border-radius: 6px;
|
|
background: var(--scrollbar-thumb) content-box;
|
|
}
|
|
.pane :global(.xterm .xterm-scrollable-element > .scrollbar > .slider:hover),
|
|
.pane :global(.xterm .xterm-scrollable-element > .scrollbar > .slider.active) {
|
|
background: var(--scrollbar-thumb-hover) content-box;
|
|
}
|
|
|
|
.rename {
|
|
padding: 6px;
|
|
width: 220px;
|
|
}
|
|
|
|
/* Find bar (⌘F) */
|
|
.find {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1);
|
|
padding: 4px 8px;
|
|
background: var(--bg-elev);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.findField {
|
|
flex: 1;
|
|
min-width: 160px;
|
|
}
|
|
.findCount {
|
|
font-size: var(--fs-small);
|
|
font-variant-numeric: tabular-nums;
|
|
color: var(--fg-subtle);
|
|
padding: 0 6px;
|
|
white-space: nowrap;
|
|
min-width: 56px;
|
|
}
|
|
.findCountNone {
|
|
color: var(--danger);
|
|
}
|
|
@container terminal-output (min-width: 500px) and (min-height: 160px) {
|
|
.find {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
z-index: 6;
|
|
width: 500px;
|
|
border-left: 1px solid var(--border);
|
|
}
|
|
.find[data-match-covered] {
|
|
top: auto;
|
|
bottom: 0;
|
|
border-top: 1px solid var(--border);
|
|
border-bottom: 0;
|
|
}
|
|
}
|
|
|
|
@container terminal-output (max-width: 360px) {
|
|
.find {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) repeat(3, var(--h-control-small));
|
|
}
|
|
.findField {
|
|
grid-column: 1 / -1;
|
|
min-width: 0;
|
|
}
|
|
}
|