Split the Guide page into tabs, matching the Settings/Event Manager pattern
The page had grown to ~20 stacked panels on one very long scroll - the same problem already fixed twice this session for Settings and Event Manager. Grouped into 5 tabs (Getting started, Create a race, Run a race, Training & results, Video guides) using the same activeGuideTab-as-module-state approach so the selection survives an in-place re-render (e.g. a language switch). The always-visible overview cards at the top are unchanged. Also investigated a "feels slow" concern raised alongside this: measured the page's actual render cost in a real browser (median 0.6ms, on par with or faster than Settings/ Timing) and confirmed the periodic tickClock/updateSyncStatus intervals never re-render an idle Guide page. No performance issue found - the perceived slowness was the page's length, which this change addresses directly. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1624,6 +1624,42 @@ body {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.guide-tabs {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin: 14px 0;
|
||||
}
|
||||
|
||||
.guide-tab {
|
||||
border: 1px solid var(--line);
|
||||
background: var(--surface-soft);
|
||||
color: var(--text);
|
||||
border-radius: 10px;
|
||||
padding: 8px 14px;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
font-size: 0.86rem;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.guide-tab:hover {
|
||||
border-color: color-mix(in srgb, var(--accent-2) 42%, var(--line));
|
||||
}
|
||||
|
||||
.guide-tab.active {
|
||||
border-color: color-mix(in srgb, var(--accent) 55%, transparent);
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
color-mix(in srgb, var(--accent) 30%, transparent),
|
||||
color-mix(in srgb, var(--accent) 10%, transparent)
|
||||
);
|
||||
}
|
||||
|
||||
[data-guide-panel][hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.decoder-settings-form {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
|
||||
Reference in New Issue
Block a user