mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 08:03:19 +00:00
Closes #1720 Plugins can declare searchable multi-page settings (API 1.3): pages under the plugin in Settings, groups, string lists, editable tables and command buttons, while single-schema plugins keep working. A command button applies pending edits first and runs against the selected Global/Project layer (also remotely); Reset keeps other pages' edits, and invalid table/list edits never replace saved rows. Field and page order come from the schema without changing serde_json's map ordering elsewhere in the app. Co-authored-by: arnaud-ritti <77437157+arnaud-ritti@users.noreply.github.com>
87 lines
1.0 KiB
CSS
87 lines
1.0 KiB
CSS
.page,
|
|
.group,
|
|
.field,
|
|
.array {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.field {
|
|
gap: 4px;
|
|
}
|
|
|
|
.group h3 {
|
|
margin: 0;
|
|
font-size: inherit;
|
|
}
|
|
|
|
.description {
|
|
color: var(--fg-muted);
|
|
margin: 0;
|
|
}
|
|
|
|
.scroll {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.scroll table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.scroll th,
|
|
.scroll td {
|
|
padding: 6px;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.scroll input {
|
|
min-width: 100px;
|
|
}
|
|
|
|
.buttons {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.error {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.multiline {
|
|
min-height: 100px;
|
|
padding: var(--space-2);
|
|
color: var(--fg);
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border);
|
|
font: inherit;
|
|
resize: vertical;
|
|
}
|
|
|
|
.add {
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.scroll th {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.scroll th:last-child,
|
|
.scroll td:last-child {
|
|
position: sticky;
|
|
right: 0;
|
|
background: var(--bg-dialog, var(--bg-elev));
|
|
}
|
|
|
|
.scroll td:last-child .buttons {
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.scalars {
|
|
max-width: 560px;
|
|
}
|