Skip to content

Commit

Permalink
fix: prevent layout shift when hovering over doc header (#867)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
aklinker1 authored Dec 14, 2024
1 parent 4ac8c12 commit f597b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ body .ddoc {

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

.docEntryHeader:hover > .context_button {
Expand Down

0 comments on commit f597b42

Please sign in to comment.