дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-27 21:12:34 +02:00
The Change Signature dialog's parameter table had fixed column widths and a one-line preview, so in narrow windows types and names were clipped and long signatures ran off the preview. The table columns now share the width with truncation, the preview puts each parameter on its own line as IDEA's does, and the dialog's sections keep their controls visible.
144 рядки
2.5 KiB
CSS
144 рядки
2.5 KiB
CSS
.dialog [data-dialog-body] {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-2);
|
|
padding: var(--space-3);
|
|
font-size: var(--fs-ui);
|
|
color: var(--fg);
|
|
}
|
|
|
|
.header {
|
|
flex: none;
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr) minmax(0, 1.25fr);
|
|
align-items: end;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.field {
|
|
flex: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-1);
|
|
min-width: 0;
|
|
}
|
|
|
|
.parameters {
|
|
flex: 1 1 auto;
|
|
min-height: calc(var(--h-list-row) * 5);
|
|
display: flex;
|
|
flex-direction: column;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-control);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.toolbar {
|
|
flex: none;
|
|
display: flex;
|
|
gap: var(--space-1);
|
|
padding: var(--space-0-5) var(--space-1);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.rows {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
scroll-padding-block-start: var(--h-list-row);
|
|
}
|
|
|
|
.table {
|
|
width: 100%;
|
|
table-layout: fixed;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
.table :is(th, td) {
|
|
padding: 0 var(--space-2);
|
|
}
|
|
|
|
.table th {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
height: var(--h-list-row);
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg-dialog, var(--bg-elev));
|
|
color: var(--fg-muted);
|
|
text-align: start;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.table th:first-child {
|
|
width: 42%;
|
|
}
|
|
|
|
.table th:first-child:nth-last-child(3) {
|
|
width: 36%;
|
|
}
|
|
|
|
.table th:nth-child(3) {
|
|
width: 28%;
|
|
}
|
|
|
|
.body .code,
|
|
.preview {
|
|
font-family: var(--signature-font-family, var(--font-mono));
|
|
font-size: var(--signature-font-size, var(--fs-code));
|
|
font-weight: var(--signature-font-weight, var(--fw-code));
|
|
}
|
|
|
|
.body .code {
|
|
width: 100%;
|
|
height: max(var(--h-field), calc(var(--signature-font-size, var(--fs-code)) + var(--space-2)));
|
|
}
|
|
|
|
.row .code:focus-visible {
|
|
box-shadow: inset 0 -1px var(--focus-ring);
|
|
}
|
|
|
|
.row:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.row[aria-selected="true"] {
|
|
background: var(--bg-selected);
|
|
}
|
|
|
|
.preview {
|
|
height: clamp(56px, 18vh, 128px);
|
|
margin: 0;
|
|
padding: var(--space-1-5) var(--space-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-control);
|
|
overflow: auto;
|
|
white-space: pre-wrap;
|
|
overflow-wrap: anywhere;
|
|
line-height: 1.5;
|
|
user-select: text;
|
|
color: var(--fg);
|
|
background: var(--bg-input);
|
|
}
|
|
|
|
.busy {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-1-5);
|
|
color: var(--fg-muted);
|
|
}
|
|
|
|
.error {
|
|
flex: none;
|
|
color: var(--danger);
|
|
font-size: var(--fs-small);
|
|
overflow-wrap: anywhere;
|
|
}
|