From 5a8b5208a66339cd0813bd1443389c160ee58fb4 Mon Sep 17 00:00:00 2001 From: panr Date: Sat, 21 Dec 2024 23:33:25 +0100 Subject: [PATCH] fix figure width for smaller images fixes #514 issue reported by @vlvk --- .editorconfig | 9 +++++++++ assets/css/terminal.css | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..a540917 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 + +indent_size = 2 +indent_style = space diff --git a/assets/css/terminal.css b/assets/css/terminal.css index 7994bd7..2ef150f 100644 --- a/assets/css/terminal.css +++ b/assets/css/terminal.css @@ -211,6 +211,10 @@ img { overflow: hidden; } +figure { + width: fit-content; +} + figure img, figure video { margin-bottom: 0;