forked from jappel/leistungsbilanz-ts
Use icon buttons in the circuit list editor
- New IconButton/IconButtonSeparator component based on lucide-react. - Toolbar: icon plus text, grouped into history, view and insert blocks. - Group headers: compact icons for add circuit, upstream fuse (VS), group RCD (FI), edit, move up/down, renumber and delete; the header no longer overflows the grid. - Rows: add device, delete circuit (trash) and delete device (ListX). - The previous German labels remain accessible names and tooltips; destructive actions highlight in the danger color. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2e3e85a8e5
commit
e394ff93f4
4 changed files with 374 additions and 205 deletions
|
|
@ -487,6 +487,54 @@ a.kpi:hover {
|
|||
opacity: 0.45;
|
||||
}
|
||||
|
||||
/* Icon buttons (circuit list editor toolbar, group and row actions) */
|
||||
.icon-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.35rem;
|
||||
line-height: 1.2;
|
||||
cursor: pointer;
|
||||
transition: color 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
|
||||
}
|
||||
|
||||
.icon-button svg {
|
||||
flex: none;
|
||||
}
|
||||
|
||||
.icon-button:disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.icon-button:not(:disabled):hover {
|
||||
border-color: var(--accent-blue);
|
||||
color: var(--accent-blue);
|
||||
}
|
||||
|
||||
.icon-button-danger:not(:disabled):hover {
|
||||
border-color: var(--color-danger);
|
||||
background: var(--color-danger-bg);
|
||||
color: var(--color-danger);
|
||||
}
|
||||
|
||||
.editor-toolbar .project-device-drawer-toggle:not(:disabled):hover {
|
||||
color: #fff;
|
||||
filter: brightness(1.08);
|
||||
}
|
||||
|
||||
.icon-button-text {
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.icon-button-separator {
|
||||
align-self: stretch;
|
||||
width: 1px;
|
||||
margin: 0.1rem 0.15rem;
|
||||
background: var(--panel-border-strong);
|
||||
}
|
||||
|
||||
.editor-toolbar .project-device-drawer-toggle {
|
||||
border-color: var(--accent-blue);
|
||||
background: var(--accent-blue);
|
||||
|
|
@ -1153,7 +1201,20 @@ a.kpi:hover {
|
|||
|
||||
.tree-grid .section-actions {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.tree-grid .section-actions .icon-button,
|
||||
.tree-grid .action-cell .icon-button {
|
||||
min-width: 1.75rem;
|
||||
min-height: 1.6rem;
|
||||
padding: 0.15rem 0.3rem;
|
||||
}
|
||||
|
||||
.tree-grid .section-actions .icon-button:disabled,
|
||||
.tree-grid .action-cell .icon-button:disabled {
|
||||
opacity: 0.35;
|
||||
}
|
||||
|
||||
.tree-grid .section-actions button {
|
||||
|
|
@ -1265,7 +1326,7 @@ a.kpi:hover {
|
|||
|
||||
.tree-grid .action-cell {
|
||||
display: flex;
|
||||
gap: 0.3rem;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.tree-grid .action-cell button {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue