From d5b7f6808b445825fc80c1f1ec9c1c970a64bf76 Mon Sep 17 00:00:00 2001 From: Ilmari Lauhakangas Date: Tue, 4 Jun 2024 12:35:25 +0300 Subject: tdf#161413 Prevent SVGs without width from overflowing the container Change-Id: Idaf3a4f4d0d286520565623b29bbc186fbfd79d8 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/168400 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas Reviewed-by: Ilmari Lauhakangas (cherry picked from commit b256e08a31624c1c55894b4f11065c75423af30e) Reviewed-on: https://gerrit.libreoffice.org/c/help/+/168327 Reviewed-by: Adolfo Jayme Barrientos --- help3xsl/default.css | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'help3xsl') diff --git a/help3xsl/default.css b/help3xsl/default.css index 2a1fb17cb8..969ba50a73 100644 --- a/help3xsl/default.css +++ b/help3xsl/default.css @@ -126,6 +126,10 @@ pre, font-family: var(--font_mono); word-wrap: anywhere; } +/* prevent SVGs without width from overflowing the container */ +img[src$=".svg"] { + max-width: 100%; +} .literal { white-space: normal; } -- cgit