Skip to content

Commit 6df7f7e

Browse files
authored
Merge pull request #1343 from isaacphysics/hotfix/display-katex-spacing
Display Katex spacing
2 parents 2b2cbaa + c6b4dc4 commit 6df7f7e

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/scss/common/questions.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,13 @@ $inline-feedback-padding: 2px;
508508
display: inline;
509509
}
510510

511+
.katex-display.katex-display {
512+
// katex default is margin: 1rem 0, padding: 0. owing to issues with requiring hidden y-overflow, we move some of this
513+
// to padding to "absorb" the overflow and prevent it from being cut off (helps fix latex dropzones in big latex expressions - c.f. matrices)
514+
margin: 0.5rem 0;
515+
padding: 0.5rem 0;
516+
}
517+
511518
// cloze dropdowns inside katex are normally cut off due to content-driven overflows we cannot control easily. this:
512519
// a) enforces that dropdowns are provided $cloze-dropdown-height of space (maximum height before scrolling);
513520
// b) sets the correct overflow behaviour for the parent of the katex containing the dropdown;

0 commit comments

Comments
 (0)