From 6d303e5cef9c3a3c77294b79c4907ec69943226f Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 26 Oct 2024 10:38:06 +0200 Subject: Lightbox fallback without :target --- tpl/objects/backdrop.pug | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tpl/objects/backdrop.pug') diff --git a/tpl/objects/backdrop.pug b/tpl/objects/backdrop.pug index 227700c..f577961 100644 --- a/tpl/objects/backdrop.pug +++ b/tpl/objects/backdrop.pug @@ -8,7 +8,10 @@ mixin backdrop classes[attributes.class] = true; } - let styles = { width: '100%', 'min-height': '5em', 'max-height': '40em' } + let styles = { width: '100%', 'min-height': '5em' } + if (attributes.maxHeight) { + styles['max-height'] = '40em'; + } if (attributes.pad) { styles['padding'] = '2em'; } -- cgit v1.3.1