help3xsl/default.css | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit d5b7f6808b445825fc80c1f1ec9c1c970a64bf76
Author: Ilmari Lauhakangas <[email protected]>
AuthorDate: Tue Jun 4 12:35:25 2024 +0300
Commit: Adolfo Jayme Barrientos <[email protected]>
CommitDate: Tue Jun 4 19:55:20 2024 +0200
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 <[email protected]>
Reviewed-by: Ilmari Lauhakangas <[email protected]>
(cherry picked from commit b256e08a31624c1c55894b4f11065c75423af30e)
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/168327
Reviewed-by: Adolfo Jayme Barrientos <[email protected]>
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;
}