summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2024-06-04 12:35:25 +0300
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2024-06-04 11:37:52 +0200
commitb256e08a31624c1c55894b4f11065c75423af30e (patch)
tree37c6a6fbe2144e7cca9862e4bbda8005a350f6fc
parent0bcda201437649d9a6cfc0c7b7875e19c511ea22 (diff)
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 <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
-rw-r--r--help3xsl/default.css4
1 files changed, 4 insertions, 0 deletions
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;
}