From 3cad960499c164fe7d2d6ae1f4f3630562bc559c Mon Sep 17 00:00:00 2001 From: Florian Knoch Date: Mon, 6 May 2019 11:00:20 +0200 Subject: [PATCH] Change preview box sizing --- css/theme/latex.css | 1 + css/theme/source/latex.scss | 1 + 2 files changed, 2 insertions(+) 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;