Controls: separate Categories filter toggle, standalone buttons, full-width category headers
- FilterBar split into CategoryFilterBar / StatesFilterBar / StatFilterBar — each independently toggleable from the controls bar (Categories Filter / States Filter / Stats Filter), visibility persisted to localStorage - Control buttons are now individual rounded buttons with a 6px gap (removed the merged/segmented styling that left a missing border) - Category group headers span the full width with top/bottom borders only; 37px side padding keeps the header text aligned with room card content Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a4c1f9bce5
commit
2ec629cb5b
3 changed files with 42 additions and 50 deletions
|
|
@ -215,7 +215,7 @@ html, body, #root {
|
|||
}
|
||||
.control-group {
|
||||
display: flex;
|
||||
gap: 2px;
|
||||
gap: 6px;
|
||||
}
|
||||
.control-btn {
|
||||
display: flex;
|
||||
|
|
@ -238,9 +238,6 @@ html, body, #root {
|
|||
color: var(--app-primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
.control-group .control-btn:not(:first-child) { border-left: none; border-radius: 0 6px 6px 0; }
|
||||
.control-group .control-btn:first-child:not(:last-child) { border-radius: 6px 0 0 6px; }
|
||||
|
||||
/* ── Filter bars ─────────────────────────────────────────────── */
|
||||
.filter-section {
|
||||
background: var(--card-bg);
|
||||
|
|
@ -347,38 +344,16 @@ html, body, #root {
|
|||
align-items: center;
|
||||
gap: 8px;
|
||||
background: #e5e7eb;
|
||||
border: 2px solid #d1d5db;
|
||||
border-radius: 8px;
|
||||
margin: 8px 23px 5px;
|
||||
padding: 6px 12px;
|
||||
border-top: 2px solid #d1d5db;
|
||||
border-bottom: 2px solid #d1d5db;
|
||||
margin: 8px 0 5px;
|
||||
padding: 6px 37px;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
}
|
||||
.category-header::before,
|
||||
.category-header::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -2px;
|
||||
bottom: -2px;
|
||||
width: 16px;
|
||||
background: #e5e7eb;
|
||||
border-top: 2px solid #d1d5db;
|
||||
border-bottom: 2px solid #d1d5db;
|
||||
pointer-events: none;
|
||||
}
|
||||
.category-header::before {
|
||||
left: -16px;
|
||||
border-right: 2px solid #d1d5db;
|
||||
border-radius: 0 6px 6px 0;
|
||||
}
|
||||
.category-header::after {
|
||||
right: -16px;
|
||||
border-left: 2px solid #d1d5db;
|
||||
border-radius: 6px 0 0 6px;
|
||||
}
|
||||
.category-name {
|
||||
flex: 1;
|
||||
font-size: 12px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue