From afaaf853db730a099e8bcc52fb4daf20c5f30373 Mon Sep 17 00:00:00 2001 From: Denis Malinovsky Date: Wed, 8 Jan 2025 17:19:33 -0500 Subject: [PATCH 1/2] FB2: Make image a block level element --- cr3gui/data/fb2.css | 1 - 1 file changed, 1 deletion(-) diff --git a/cr3gui/data/fb2.css b/cr3gui/data/fb2.css index 24af9b1be..0c5182a45 100644 --- a/cr3gui/data/fb2.css +++ b/cr3gui/data/fb2.css @@ -11,7 +11,6 @@ a[type="note"] { vertical-align: super; font-size: 70%; text-decoration: none } a[type="note"]::before { content: "\2060" } /* word joiner, avoid break before */ image { text-indent: 0; display: block; margin: 0 auto; } -p image { display: inline } li image { display: inline } li { display: list-item; text-indent: 0; } From 77c810e08fb4094af6fa86cdc941c0d74d97b248 Mon Sep 17 00:00:00 2001 From: Denis Malinovsky Date: Thu, 9 Jan 2025 12:06:53 -0500 Subject: [PATCH 2/2] Convert single image to a block element --- cr3gui/data/fb2.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cr3gui/data/fb2.css b/cr3gui/data/fb2.css index 0c5182a45..8d5a4770c 100644 --- a/cr3gui/data/fb2.css +++ b/cr3gui/data/fb2.css @@ -11,6 +11,8 @@ a[type="note"] { vertical-align: super; font-size: 70%; text-decoration: none } a[type="note"]::before { content: "\2060" } /* word joiner, avoid break before */ image { text-indent: 0; display: block; margin: 0 auto; } +p image { display: inline } +p image:only-child { display: block; } li image { display: inline } li { display: list-item; text-indent: 0; }