Skip to content

Commit f597b42

Browse files
authored
fix: prevent layout shift when hovering over doc header (#867)
This closes #866, see issue for video of original issue. Resolves the shift caused by mismatch in the SVG and text heights. https://github.com/user-attachments/assets/1b533313-60bc-4637-97d9-f0b51c4f4106
1 parent 4ac8c12 commit f597b42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/static/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ body .ddoc {
475475

476476
.symbolGroup article > div:hover > div + a.context_button:before {
477477
content: "View code";
478-
@apply hidden md:block text-xs;
478+
@apply hidden md:block text-xs leading-none;
479479
}
480480

481481
.docEntryHeader:hover > .context_button {

0 commit comments

Comments
 (0)