дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-23 10:00:48 +02:00
- Keep the shape and paging controls above the table and put the full-width slice expression below it, above Close. The grid scrolls between the controls. - Open at 700 × 500 when there is room. Give short tables the available width, use workbench typography and center the row and column headers. - Update the title when a slice is submitted and show expression errors below the field.
120 рядки
1.9 KiB
CSS
120 рядки
1.9 KiB
CSS
.dialog {
|
|
height: 500px;
|
|
}
|
|
|
|
/* Scroll only the grid between the toolbar and the expression field. */
|
|
.content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
min-height: 0;
|
|
padding: var(--space-2) var(--space-3) 0;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.bar {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
gap: var(--space-1) var(--space-2);
|
|
}
|
|
|
|
.expression {
|
|
flex: none;
|
|
}
|
|
|
|
.pagers {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-1) var(--space-2);
|
|
}
|
|
|
|
.summary,
|
|
.pager {
|
|
color: var(--fg-secondary);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.pager {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-1);
|
|
}
|
|
|
|
.scroll {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
box-shadow: inset 0 0 0 1px var(--border);
|
|
border-radius: var(--radius-small);
|
|
}
|
|
|
|
.table {
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
min-width: 100%;
|
|
font-family: var(--font-ui);
|
|
font-size: var(--fs-ui);
|
|
color: var(--fg);
|
|
}
|
|
|
|
.table th,
|
|
.table td {
|
|
height: var(--h-list-row);
|
|
padding: 0 8px;
|
|
white-space: pre;
|
|
border-right: 1px solid var(--border);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.table thead th {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
text-align: center;
|
|
font-weight: normal;
|
|
color: var(--fg-secondary);
|
|
background: var(--bg-island);
|
|
}
|
|
|
|
.table .index {
|
|
position: sticky;
|
|
left: 0;
|
|
text-align: center;
|
|
font-variant-numeric: tabular-nums;
|
|
font-weight: normal;
|
|
color: var(--fg-secondary);
|
|
background: var(--bg-island);
|
|
}
|
|
|
|
.table thead .index {
|
|
z-index: 2;
|
|
}
|
|
|
|
.table tbody tr:hover td {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.dtype {
|
|
margin-left: var(--space-1);
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-small);
|
|
}
|
|
|
|
.message {
|
|
flex: 1;
|
|
min-height: 0;
|
|
padding: var(--space-3) 0;
|
|
color: var(--fg-secondary);
|
|
}
|
|
|
|
.error {
|
|
max-height: 5em;
|
|
overflow: auto;
|
|
overflow-wrap: anywhere;
|
|
color: var(--danger);
|
|
}
|