Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions third_party/muya/src/assets/styles/inlineSyntax.css
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,20 @@ code.mu-inline-rule {
height: 6px;
}

/* KaTeX gives every sub/superscript a 2px `.vlist-s` strut that
`.vlist-t2 { margin-right: -2px }` cancels visually. The negative margin fixes
layout width but not scrollWidth, so the `overflow: auto` above draws a
spurious scrollbar under any short formula ending in a sub/superscript
(#4837). Zero both to match the scroll extent to the visible width. */
.mu-math > .mu-math-render .katex .vlist-s {
width: 0;
min-width: 0;
}

.mu-math > .mu-math-render .katex .vlist-t2 {
margin-right: 0;
}

.mu-ruby > .mu-ruby-render {
left: 50%;

Expand Down
Loading