From 072da8a045500af75cc8febce1cb08133217a8d3 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Mon, 15 May 2023 14:01:09 +0200 Subject: [PATCH] MOBILE-4338 core: Fix whitespace in
 elements

"pre" comes from "preformatted text", so we shouldn't be tweaking the whitespace on those elements.
---
 src/theme/theme.base.scss | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/theme/theme.base.scss b/src/theme/theme.base.scss
index 7ad370c8c..366fea4b8 100644
--- a/src/theme/theme.base.scss
+++ b/src/theme/theme.base.scss
@@ -120,15 +120,15 @@ body {
 }
 
 // Correctly inherit ion-text-wrap onto labels.
-.item ion-label core-format-text > *,
-.fake-ion-item core-format-text > * {
+.item ion-label core-format-text > *:not(pre),
+.fake-ion-item core-format-text > *:not(pre) {
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }
 
-.item.ion-text-wrap > ion-label core-format-text > *,
-.fake-ion-item.ion-text-wrap core-format-text > * {
+.item.ion-text-wrap > ion-label core-format-text > *:not(pre),
+.fake-ion-item.ion-text-wrap core-format-text > *:not(pre) {
     white-space: normal;
     overflow: inherit;
 }