diff --git a/css/theme/latex.css b/css/theme/latex.css index 357232c..98c2ff2 100644 --- a/css/theme/latex.css +++ b/css/theme/latex.css @@ -85,6 +85,7 @@ body { object-fit: cover; margin: calc(.05 * var(--square)); } body .layout-preview img[src$="-crop.svg"] { + box-sizing: border-box; background: white; padding: calc(var(--margin) * var(--square)); object-fit: contain; diff --git a/css/theme/source/latex.scss b/css/theme/source/latex.scss index 08c8f78..0be2e3a 100644 --- a/css/theme/source/latex.scss +++ b/css/theme/source/latex.scss @@ -118,6 +118,7 @@ body { object-fit: cover; margin: calc(.05 * var(--square)); &[src$="-crop.svg"] { + box-sizing: border-box; background: white; padding: calc(var(--margin) * var(--square)); object-fit: contain;