Commit 4952472
committed
fix(codehints): stop unselected snippet badge from wrapping to a blank line
.custom-snippet-code-hint (the "Snippet" badge on default-snippet hint
rows) was only position: absolute while its row was highlighted. When
unhighlighted it fell back to static positioning with just
visibility: hidden - which still reserves layout space - so the
invisible badge text wrapped onto its own line inside the row,
leaving a blank line and shifting every hint below it down as soon as
selection moved off that row (e.g. pressing the down arrow).
Make the badge position: absolute unconditionally so it's out of flow
in both states; only visibility toggles with .highlight now.1 parent 7853ef5 commit 4952472
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
839 | 839 | | |
840 | 840 | | |
841 | 841 | | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
842 | 847 | | |
843 | 848 | | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | 849 | | |
849 | 850 | | |
850 | 851 | | |
| |||
857 | 858 | | |
858 | 859 | | |
859 | 860 | | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
860 | 865 | | |
861 | 866 | | |
862 | 867 | | |
| |||
0 commit comments