[BUGFIX] Scale images in content element preview 02/51802/3
authorMads Jensen <mlj@systime.dk>
Thu, 23 Feb 2017 14:09:07 +0000 (15:09 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Fri, 24 Feb 2017 12:27:00 +0000 (13:27 +0100)
Added CSS to ensure images are contained in parent element.

Resolves: #79971
Releases: master
Change-Id: I38a4038af067166d771d012e2ddc0e2983060513
Reviewed-on: https://review.typo3.org/51802
Reviewed-by: Morten Pless <mpl@systime.dk>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Christer V <cvi@systime.dk>
Reviewed-by: Timo Hund <timo.hund@yahoo.com>
Tested-by: Timo Hund <timo.hund@yahoo.com>
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Josef Glatz <josef.glatz@typo3.org>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Build/Resources/Public/Less/TYPO3/_module_web_page.less
typo3/sysext/backend/Resources/Public/Css/backend.css

index 778be15..e60702e 100644 (file)
                padding: @page-grid-spacing;
                word-wrap: break-word;
        }
+       .t3-page-ce-body-inner img {
+               max-width: 100%;
+               height: auto;
+       }
        .t3-page-ce-header {
                &:extend(.clearfix all);
                .transition(background .15s ease-in);
index 02bbf68..933cb0b 100644 (file)
@@ -13538,6 +13538,10 @@ textarea.formengine-textarea {
   padding: 10px;
   word-wrap: break-word;
 }
+.t3-page-ce .t3-page-ce-body-inner img {
+  max-width: 100%;
+  height: auto;
+}
 .t3-page-ce .t3-page-ce-header {
   transition: background 0.15s ease-in;
   padding: 5px;