Commit 9cda6f9
guides: fix landing load jank (section jump + nav flash)
The section spacing and the nav highlight colors were only applied via
Alpine :class bindings, so before Alpine booted the sections rendered
with no padding (then jumped down once it applied) and the nav buttons
rendered with no color (all looking "selected" until inactive ones
dimmed).
- Move the grouped section spacing (border-t, py-12) into the static
class so first paint matches the initial state.
- Give the nav container a default gray text color so buttons inherit the
inactive look pre-Alpine.
- Preserve the flat-list-while-filtering look with a .guides-flat > section
rule toggled on the container only when filtering, so it never affects
first paint.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent fe543d7 commit 9cda6f9
2 files changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
251 | 260 | | |
252 | 261 | | |
253 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
143 | | - | |
144 | | - | |
| 146 | + | |
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
| |||
0 commit comments