diff --git a/src/app/app.scss b/src/app/app.scss index a527a7016..68778b33a 100644 --- a/src/app/app.scss +++ b/src/app/app.scss @@ -376,6 +376,17 @@ ion-app.app-root { } @include core-headings(); + + img.icon { + font-size: 16px; + width: 16px; + height: 16px; + margin: 0; + padding: 0; + -webkit-box-sizing: content-box; + box-sizing: content-box; + margin-right: .5rem; + } } .item core-format-text { diff --git a/src/directives/format-text.ts b/src/directives/format-text.ts index 2c46e20f4..5e8eaee07 100644 --- a/src/directives/format-text.ts +++ b/src/directives/format-text.ts @@ -382,7 +382,7 @@ export class CoreFormatTextDirective implements OnChanges { images.forEach((img: HTMLElement) => { this.addMediaAdaptClass(img); this.addExternalContent(img); - if (this.utils.isTrueOrOne(this.adaptImg)) { + if (this.utils.isTrueOrOne(this.adaptImg) && !img.classList.contains('icon')) { this.adaptImage(elWidth, img); } });