дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 01:57:13 +02:00
* feat(ui): open New Project, Get from VCS and Remote Development in their own windows Each dialog gets a native window over its project window: a full-height sidebar under the traffic lights, the title heading the content and the buttons in its corner. The windows hand their result back to the project window, which opens the created or cloned project or makes the remote connection and reports its progress. Remote windows and the browser build keep the dialogs in the page. * feat(ui): show dialogs in the page as sheets without window buttons on macOS The title heads the content instead of a title bar with drawn traffic lights; Esc and Cancel close the dialog, and the title dims while the window is inactive. * fix(ui): give a macOS dialog without footer buttons a Close button A sheet has no window buttons, so a dialog with neither buttons nor a footer could only be closed with Esc. The Extract Interface members table may shrink to two rows so the dialog still fits a short window under the taller sheet title.
254 рядки
4.9 KiB
CSS
254 рядки
4.9 KiB
CSS
/* File › New Project… */
|
||
.dialog {
|
||
height: min(602px, calc(100vh - 48px));
|
||
}
|
||
.dialog [data-dialog-body] {
|
||
overflow: hidden;
|
||
}
|
||
.dialog [data-dialog-footer] {
|
||
border-top: 1px solid var(--border);
|
||
}
|
||
.layout {
|
||
height: 100%;
|
||
}
|
||
.sidebar {
|
||
background: var(--bg-island);
|
||
}
|
||
.search {
|
||
flex: none;
|
||
margin: var(--space-2);
|
||
}
|
||
.list {
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow-y: auto;
|
||
padding: 0 var(--space-1) var(--space-2);
|
||
}
|
||
.groupLabel {
|
||
padding: var(--space-2) var(--space-2) var(--space-1);
|
||
color: var(--fg-subtle);
|
||
font-size: var(--fs-small);
|
||
font-weight: 600;
|
||
overflow-wrap: anywhere;
|
||
}
|
||
.entry {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--space-2);
|
||
width: 100%;
|
||
height: var(--h-list-row);
|
||
padding: 0 var(--space-2);
|
||
border: 0;
|
||
border-radius: var(--radius-control, 4px);
|
||
background: transparent;
|
||
color: var(--fg);
|
||
font: inherit;
|
||
text-align: left;
|
||
}
|
||
.entry > span {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
.entry:hover {
|
||
background: var(--bg-hover);
|
||
}
|
||
.entry[aria-selected="true"] {
|
||
background: var(--bg-list-selected);
|
||
color: var(--fg-strong);
|
||
}
|
||
.entry:focus-visible {
|
||
outline: 2px solid var(--focus-ring);
|
||
outline-offset: -2px;
|
||
}
|
||
.form {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: var(--space-3);
|
||
min-width: 0;
|
||
min-height: 0;
|
||
overflow: auto;
|
||
padding: var(--space-4);
|
||
font-size: var(--fs-ui);
|
||
}
|
||
.description {
|
||
color: var(--fg-subtle);
|
||
overflow-wrap: anywhere;
|
||
}
|
||
.grid {
|
||
display: grid;
|
||
grid-template-columns: fit-content(38%) minmax(0, 1fr);
|
||
align-items: center;
|
||
gap: var(--space-2) var(--space-3);
|
||
}
|
||
.label {
|
||
color: var(--fg);
|
||
overflow-wrap: anywhere;
|
||
}
|
||
.location {
|
||
display: flex;
|
||
align-items: center;
|
||
padding-inline-end: var(--space-1);
|
||
border-radius: var(--radius-control);
|
||
background: var(--bg-field, var(--bg-button));
|
||
box-shadow: inset 0 0 0 1px var(--border-button);
|
||
}
|
||
.location:focus-within {
|
||
box-shadow:
|
||
inset 0 0 0 1px var(--focus-ring),
|
||
0 0 0 1px var(--focus-ring);
|
||
}
|
||
.location .locationInput {
|
||
flex: 1;
|
||
min-width: 0;
|
||
padding-inline: var(--space-2);
|
||
}
|
||
.fieldSelect {
|
||
max-width: 100%;
|
||
}
|
||
.hint,
|
||
.fieldHint {
|
||
color: var(--fg-subtle);
|
||
font-size: var(--fs-small);
|
||
overflow-wrap: anywhere;
|
||
}
|
||
.hint {
|
||
min-height: 1.5em;
|
||
}
|
||
.hint.hintError {
|
||
color: var(--danger);
|
||
}
|
||
.fieldHint {
|
||
margin-top: 4px;
|
||
}
|
||
.error {
|
||
color: var(--danger);
|
||
font-size: var(--fs-small);
|
||
overflow-wrap: anywhere;
|
||
white-space: pre-wrap;
|
||
}
|
||
.missing {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: var(--space-2);
|
||
padding: 8px 10px;
|
||
border: 1px solid var(--border-feedback-warning);
|
||
border-radius: var(--radius-control, 4px);
|
||
background: var(--bg-feedback-warning);
|
||
overflow-wrap: anywhere;
|
||
}
|
||
.segmented {
|
||
display: inline-flex;
|
||
flex-wrap: wrap;
|
||
max-width: 100%;
|
||
border-radius: var(--radius-control, 4px);
|
||
box-shadow: inset 0 0 0 1px var(--border-button);
|
||
}
|
||
.segmented button {
|
||
min-height: var(--h-field, 28px);
|
||
min-width: 0;
|
||
max-width: 100%;
|
||
padding: var(--space-1) var(--space-3);
|
||
border: 0;
|
||
border-radius: inherit;
|
||
background: transparent;
|
||
color: var(--fg);
|
||
font: inherit;
|
||
overflow-wrap: anywhere;
|
||
}
|
||
.segmented button[aria-pressed="true"] {
|
||
background: var(--bg-tab-selected);
|
||
box-shadow: inset 0 0 0 1px var(--border-tab-selected);
|
||
color: var(--fg-strong);
|
||
}
|
||
.segmented button:focus-visible {
|
||
outline: 2px solid var(--focus-ring);
|
||
outline-offset: -2px;
|
||
}
|
||
.dependencies {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: var(--space-1-5);
|
||
}
|
||
.chips {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: var(--space-1);
|
||
}
|
||
.chip {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: var(--space-1);
|
||
min-height: 22px;
|
||
min-width: 0;
|
||
max-width: 100%;
|
||
padding: 0 var(--space-1-5) 0 var(--space-2);
|
||
border: 1px solid var(--border);
|
||
border-radius: 11px;
|
||
background: var(--bg-control);
|
||
color: var(--fg);
|
||
font: inherit;
|
||
font-size: var(--fs-small);
|
||
overflow-wrap: anywhere;
|
||
text-align: left;
|
||
}
|
||
.chip:hover {
|
||
background: var(--bg-control-hover);
|
||
}
|
||
.depList {
|
||
max-height: 220px;
|
||
overflow-y: auto;
|
||
padding: 0 4px 4px;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-control, 4px);
|
||
}
|
||
.depItem {
|
||
padding: 2px 8px;
|
||
}
|
||
.progress {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
height: 420px;
|
||
padding: 16px;
|
||
}
|
||
.steps {
|
||
margin: 0;
|
||
padding-left: 20px;
|
||
color: var(--fg-subtle);
|
||
}
|
||
.steps li[aria-current="step"] {
|
||
color: var(--fg-strong);
|
||
}
|
||
.log {
|
||
flex: 1;
|
||
min-height: 0;
|
||
margin: 0;
|
||
padding: 8px;
|
||
overflow: auto;
|
||
border: 1px solid var(--border);
|
||
border-radius: var(--radius-control, 4px);
|
||
background: var(--bg-editor);
|
||
color: var(--fg-editor);
|
||
font-family: var(--font-mono);
|
||
font-size: var(--fs-small);
|
||
white-space: pre-wrap;
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
/* The New Project window */
|
||
.windowBody {
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
}
|
||
.windowBody .form {
|
||
padding-top: 0;
|
||
}
|
||
.windowBody .progress {
|
||
height: 100%;
|
||
padding-top: 0;
|
||
}
|