MOBILE-4338 core: Fix whitespace in <pre> elements

"pre" comes from "preformatted text", so we shouldn't be tweaking the whitespace on those elements.
main
Noel De Martin 2023-05-15 14:01:09 +02:00
parent 647f105873
commit 072da8a045
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}