Commit 2966b85
committed
Remove extra space below unexpanded API docs Show more
The button and its Collapse were siblings in a VStack. Chakra's
margin-based spacing was cancelled on the collapse with marginTop: 0,
but Panda's VStack uses real flex gap, so the zero-height collapsed div
still cost a 12px gap below the button. Wrap the pair in one Box so the
gap applies once above the group; the expanded spacing still comes from
the inner mt that animates with the collapse.1 parent 6fa95d2 commit 2966b85
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
219 | 222 | | |
220 | 223 | | |
221 | | - | |
222 | | - | |
| 224 | + | |
223 | 225 | | |
224 | 226 | | |
225 | 227 | | |
| |||
235 | 237 | | |
236 | 238 | | |
237 | 239 | | |
238 | | - | |
| 240 | + | |
239 | 241 | | |
240 | 242 | | |
241 | 243 | | |
| |||
0 commit comments