Commit 9a2d73c
fix(editor): stop the add-block palette from being clipped by the viewport
The block palette lists 23 block types across 5 groups (~875px tall), but
PopoverContent had no height cap and no scroll, so the bottom of the list
was cut off by the viewport on desktop — "Separador" was unreachable and
the last row of "Estructura" sat half off-screen.
`popover.tsx` was the only base-ui overlay primitive missing the
`max-h-(--available-height) overflow-y-auto` treatment that select,
dropdown-menu and combobox already have, so fix it there: every
over-tall popover now scrolls inside the space the positioner reports
instead of overflowing (lesson-component-picker had the same latent bug).
Also bumped the palette's legibility: item labels 11px -> 12px at full
foreground contrast, group headings 10px/60% -> 11px at full
muted-foreground, and the popover 340px -> 360px so the wider labels fit.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MVN1bVpXJQ2CT7nv4acFRz1 parent d2cef7c commit 9a2d73c
2 files changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| |||
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
114 | | - | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
131 | | - | |
| 135 | + | |
132 | 136 | | |
133 | 137 | | |
134 | 138 | | |
| |||
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
147 | | - | |
| 151 | + | |
148 | 152 | | |
149 | 153 | | |
150 | 154 | | |
| |||
159 | 163 | | |
160 | 164 | | |
161 | 165 | | |
162 | | - | |
| 166 | + | |
163 | 167 | | |
164 | 168 | | |
165 | 169 | | |
| |||
181 | 185 | | |
182 | 186 | | |
183 | 187 | | |
184 | | - | |
| 188 | + | |
185 | 189 | | |
186 | 190 | | |
187 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments