Repository navigation
Commit 428f103
committed
fix(webapp): animate the side menu scroll body's right padding on collapse
The left padding of the scroll body interpolated smoothly with --sm-collapse,
but the right-hand spacing came from a reserved scrollbar gutter that is a fixed
width and gets dropped abruptly when the scrollbar is hidden on collapse, so it
jumped instead of animating. Drop the reserved gutter and drive the right
padding with the same variable as the left, so both edges animate together. The
thin scrollbar still appears when the nav list overflows; it just no longer
reserves a fixed gutter while idle.1 parent 2c264d4 commit 428f103
1 file changed
Lines changed: 7 additions & 8 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | 212 | | |
219 | 213 | | |
220 | 214 | | |
| |||
737 | 731 | | |
738 | 732 | | |
739 | 733 | | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
740 | 739 | | |
741 | 740 | | |
742 | | - | |
| 741 | + | |
743 | 742 | | |
744 | 743 | | |
745 | 744 | | |
746 | 745 | | |
747 | | - | |
| 746 | + | |
748 | 747 | | |
749 | 748 | | |
750 | 749 | | |
| |||
0 commit comments