Combine dashboard top 10 lists into one tabbed card

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Opus 5.5 committed 2026-11-15 20:24:02 +01:00
1 parent f5bcc55a29
commit 393ebcdf0c
5 files changed
+163 -53

No files matched your search

+36 -10
View File
@@ -191,18 +191,45 @@ code {
min-width: 0;
}
.tops {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
.tops-card h2 {
margin-bottom: 10px;
}
.tops > :last-child {
grid-column: 1 / -1;
.tabs {
display: flex;
gap: 2px;
margin: 0 -4px 8px;
padding: 0 4px;
overflow-x: auto;
border-bottom: 1px solid var(--border);
scrollbar-width: none;
}
.tops > * {
min-width: 0;
.tabs button[role="tab"] {
flex: none;
margin-bottom: -1px;
padding: 7px 12px;
border: 0;
border-bottom: 2px solid transparent;
border-radius: 6px 6px 0 0;
background: none;
color: var(--muted);
font-weight: 500;
}
.tabs button[role="tab"]:hover {
color: var(--text);
}
.tabs button[role="tab"][aria-selected="true"] {
border-bottom-color: var(--accent);
color: var(--text);
}
.tabs button[role="tab"]:focus-visible,
[role="tabpanel"]:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
}
.top-table {
@@ -754,8 +781,7 @@ button.danger {
grid-column: span 3;
}
.origin,
.tops {
.origin {
grid-template-columns: minmax(0, 1fr);
}
}