diff options
author | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-06-04 12:35:25 +0300 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2024-06-04 19:55:20 +0200 |
commit | d5b7f6808b445825fc80c1f1ec9c1c970a64bf76 (patch) | |
tree | 02800baf8950b827e88a741f8794bf31b1ca8830 | |
parent | 9870350ad93b6d2cdbbf037e120a5d9a50ccd919 (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>
(cherry picked from commit b256e08a31624c1c55894b4f11065c75423af30e)
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/168327
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-rw-r--r-- | help3xsl/default.css | 4 |
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; } |