a481a5c3b7
- Objects page renders paths as a collapsible tree instead of flat list with expand/collapse all, aggregated size/hits per directory - Dashboard gains top-files-by-hits and top-files-by-bandwidth tables - Backend: new /api/v2/stats/top-files-by-hits and /api/v2/stats/top-files-by-bandwidth endpoints - Raised per_page max to 5000 for objects listing --------- Co-authored-by: Ben Vincent <ben@unkin.net> Reviewed-on: #48
96 lines
1.4 KiB
CSS
96 lines
1.4 KiB
CSS
.objects-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 16px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.tree-controls {
|
|
display: flex;
|
|
gap: 6px;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.tree-table .tree-label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.tree-toggle {
|
|
display: inline-block;
|
|
width: 16px;
|
|
font-size: 0.85em;
|
|
color: var(--text-muted);
|
|
user-select: none;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.tree-dir-name {
|
|
font-weight: 600;
|
|
color: var(--text-bright);
|
|
}
|
|
|
|
.tree-file-name {
|
|
font-size: 0.85em;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.tree-dir {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tree-dir:hover {
|
|
background: var(--bg-elevated);
|
|
}
|
|
|
|
.tree-summary {
|
|
font-size: 0.8em;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.num-cell {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.hash-cell {
|
|
font-size: 0.8em;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.btn-evict {
|
|
background: transparent;
|
|
border: 1px solid var(--red);
|
|
color: var(--red);
|
|
padding: 3px 10px;
|
|
border-radius: 4px;
|
|
font-size: 0.8em;
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.btn-evict:hover {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 5px 12px;
|
|
font-size: 0.85em;
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border);
|
|
color: var(--text);
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-sm:hover:not(:disabled) {
|
|
background: var(--bg-elevated);
|
|
}
|
|
|
|
.btn-sm:disabled {
|
|
opacity: 0.4;
|
|
cursor: default;
|
|
}
|