Improved perfs

This commit is contained in:
Martino Ferrari
2026-05-12 10:16:48 +02:00
parent 912ecdd9ed
commit 6ff8fb5c25
14 changed files with 1357 additions and 25 deletions
+139
View File
@@ -1185,6 +1185,145 @@ body {
min-height: 0;
}
/* ── Signal tree tab bar ──────────────────────────────────────────────────── */
.signal-tree-tabs {
display: flex;
border-bottom: 1px solid #2d3748;
flex-shrink: 0;
}
.stab {
flex: 1;
background: none;
border: none;
border-bottom: 2px solid transparent;
color: #64748b;
cursor: pointer;
font-size: 0.75rem;
font-weight: 600;
padding: 0.35rem 0;
text-transform: uppercase;
letter-spacing: 0.04em;
transition: color 0.15s, border-color 0.15s;
}
.stab:hover { color: #94a3b8; }
.stab-active { color: #e2e8f0; border-bottom-color: #4a9eff; }
/* ── Groups tree ──────────────────────────────────────────────────────────── */
.groups-tree {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
overflow: hidden;
}
.groups-toolbar {
display: flex;
gap: 0.25rem;
padding: 0.3rem 0.5rem;
border-bottom: 1px solid #2d3748;
flex-shrink: 0;
}
.group-list { overflow-y: auto; flex: 1; padding: 0.25rem 0; }
.group-add-row {
display: flex;
align-items: center;
gap: 0.25rem;
padding: 0.2rem 0.5rem;
}
.group-add-root { padding: 0.25rem 0.5rem; }
.group-add-input {
flex: 1;
background: #0f1117;
border: 1px solid #4a9eff;
border-radius: 3px;
color: #e2e8f0;
font-size: 0.78rem;
padding: 2px 6px;
min-width: 0;
}
.group-folder { margin-bottom: 1px; }
.group-folder-header {
display: flex;
align-items: center;
gap: 0.2rem;
padding: 0.15rem 0.4rem;
cursor: default;
border-radius: 3px;
font-size: 0.8rem;
color: #94a3b8;
min-height: 1.7rem;
}
.group-folder-header:hover { background: #1e293b; color: #cbd5e1; }
.group-folder-header:hover .group-folder-actions { opacity: 1; }
.group-folder-arrow { font-size: 0.65rem; flex-shrink: 0; width: 0.9rem; text-align: center; cursor: pointer; }
.group-folder-name { flex: 1; font-weight: 600; cursor: pointer; user-select: none; }
.group-folder-count {
font-size: 0.65rem;
color: #475569;
background: #1e293b;
border-radius: 8px;
padding: 0 5px;
min-width: 1.1rem;
text-align: center;
}
.group-folder-actions {
display: flex;
gap: 1px;
opacity: 0;
transition: opacity 0.15s;
}
.group-folder-actions .icon-btn { font-size: 0.65rem; padding: 1px 3px; }
.group-rename-input {
flex: 1;
background: #0f1117;
border: 1px solid #4a9eff;
border-radius: 3px;
color: #e2e8f0;
font-size: 0.8rem;
font-weight: 600;
padding: 1px 4px;
min-width: 0;
}
.group-folder-children {
padding-left: 1rem;
border-left: 1px solid #1e293b;
margin-left: 0.7rem;
}
.group-signal-item {
display: flex;
align-items: center;
gap: 0.25rem;
padding: 0.15rem 0.4rem;
font-size: 0.78rem;
color: #94a3b8;
border-radius: 3px;
cursor: grab;
min-height: 1.5rem;
}
.group-signal-item:hover { background: #1e293b; color: #cbd5e1; }
.group-signal-item:hover .group-node-remove { opacity: 1; }
.group-signal-ds {
color: #475569;
font-size: 0.7rem;
flex-shrink: 0;
}
.group-signal-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-node-remove { opacity: 0; transition: opacity 0.15s; margin-left: auto; flex-shrink: 0; }
.signal-tree-search {
padding: 0.4rem 0.5rem;
border-bottom: 1px solid #2d3748;