From 0d0b4cabbdb166f5b6f1ca69e1ffa30a0564dd60 Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Fri, 26 Feb 2021 14:40:05 +0100 Subject: [PATCH] [THEME] Fix figure width Better way to fix figure width. Also solve the link width. --- static/css/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/css/style.css b/static/css/style.css index f71e9d0..12ae0f2 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -504,6 +504,7 @@ a:focus { .article-body figure { margin: 1em 0; max-width: 100%; + width: fit-content; overflow: visible; min-width: calc(50% - 2 * var(--image-margin-side)); } @@ -572,7 +573,6 @@ a:focus { outline: none; min-height: 100%; border: none; - width: fit-content; } .article-body figure>a>img:hover { box-shadow: 0 0 1em rgba(var(--font-color_rgb), 0.5);