help3xsl/default.css |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit b256e08a31624c1c55894b4f11065c75423af30e
Author:     Ilmari Lauhakangas <[email protected]>
AuthorDate: Tue Jun 4 12:35:25 2024 +0300
Commit:     Ilmari Lauhakangas <[email protected]>
CommitDate: Tue Jun 4 11:37:52 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]>

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;
 }

Reply via email to