Replace collapsible stream groups with sub-tabs navigation

- Replace expandable/collapsible groups with tab bar (Screen Capture, Static Image, Processed)
- Persist active stream tab in localStorage
- Shorten tab labels by removing "Streams" suffix
- Remove type badge from cards (redundant with tab separation)
- Add count badge on each tab with active highlight

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-11 20:28:30 +03:00
parent 705179f73f
commit 7d0b6f2583
4 changed files with 79 additions and 102 deletions

View File

@@ -2176,67 +2176,58 @@ input:-webkit-autofill:focus {
margin-right: 6px;
}
/* Stream group sections */
.stream-group {
margin-bottom: 24px;
}
.stream-group:last-child {
margin-bottom: 0;
}
.stream-group-header {
/* Stream sub-tabs */
.stream-tab-bar {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 12px;
padding-bottom: 8px;
gap: 4px;
border-bottom: 2px solid var(--border-color);
cursor: pointer;
user-select: none;
transition: opacity 0.2s;
margin-bottom: 16px;
}
.stream-group-header:hover {
opacity: 0.8;
}
.stream-group-chevron {
font-size: 10px;
.stream-tab-btn {
background: none;
border: none;
padding: 8px 14px;
font-size: 0.9rem;
font-weight: 500;
color: var(--text-secondary);
flex-shrink: 0;
width: 12px;
transition: transform 0.2s;
cursor: pointer;
border-bottom: 2px solid transparent;
margin-bottom: -2px;
transition: color 0.2s, border-color 0.2s;
}
.stream-group.collapsed .stream-group-header {
margin-bottom: 0;
border-bottom-color: transparent;
}
.stream-group.collapsed .templates-grid {
display: none;
}
.stream-group-icon {
font-size: 1.2rem;
}
.stream-group-title {
font-size: 1rem;
font-weight: 600;
.stream-tab-btn:hover {
color: var(--text-color);
}
.stream-group-count {
.stream-tab-btn.active {
color: var(--primary-color);
border-bottom-color: var(--primary-color);
}
.stream-tab-count {
background: var(--border-color);
color: var(--text-secondary);
font-size: 0.75rem;
font-size: 0.7rem;
font-weight: 600;
padding: 2px 8px;
border-radius: 10px;
min-width: 20px;
text-align: center;
padding: 1px 6px;
border-radius: 8px;
margin-left: 4px;
}
.stream-tab-btn.active .stream-tab-count {
background: var(--primary-color);
color: #fff;
}
.stream-tab-panel {
display: none;
}
.stream-tab-panel.active {
display: block;
}
/* Image Lightbox */