From 440c5c3a021d634991e36554ed62ceb140d4806f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 4 Jul 2018 16:08:49 +0200 Subject: [PATCH] MOBILE-2464 format-text: Have min content width on images --- src/app/app.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/app.scss b/src/app/app.scss index ee6c7fb2f..d1f0e8b5e 100644 --- a/src/app/app.scss +++ b/src/app/app.scss @@ -268,6 +268,7 @@ core-format-text[ng-reflect-single-line="true"] { .core-media-adapt-width { max-width: 100%; + height: auto; } audio.core-media-adapt-width { @@ -341,7 +342,7 @@ core-format-text { // Images in ion-card have width 100% and display block. Remove that when the image is in core-format-text. ion-card core-format-text img { - width: initial; + width: min-content; display: inline; }