From 0d7e252ca20ae03c862839cdb489cf5e112e1d8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 8 Jun 2021 13:16:03 +0200 Subject: [PATCH] MOBILE-3320 core: Fix navigation bar text overflow --- src/addons/blog/pages/entries/entries.html | 14 ++++---- .../navigation-bar/core-navigation-bar.html | 12 +++---- .../navigation-bar/navigation-bar.scss | 5 --- src/theme/theme.base.scss | 32 +++++++++++++++++++ 4 files changed, 44 insertions(+), 19 deletions(-) diff --git a/src/addons/blog/pages/entries/entries.html b/src/addons/blog/pages/entries/entries.html index 73b15a137..9f4efbfec 100644 --- a/src/addons/blog/pages/entries/entries.html +++ b/src/addons/blog/pages/entries/entries.html @@ -64,14 +64,12 @@ {{ 'addon.blog.linktooriginalentry' | translate }} - - - - {{entry.lastmodified | coreTimeAgo}} - - - +
+ + {{entry.lastmodified | coreTimeAgo}} + +
diff --git a/src/core/components/navigation-bar/core-navigation-bar.html b/src/core/components/navigation-bar/core-navigation-bar.html index b04994a15..175e0f549 100644 --- a/src/core/components/navigation-bar/core-navigation-bar.html +++ b/src/core/components/navigation-bar/core-navigation-bar.html @@ -1,20 +1,20 @@ - - + + - - + + - + * { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + ion-item.ion-text-wrap ion-label { white-space: normal !important; } +ion-button core-format-text .core-format-text-content { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + display: block; +} + +ion-button > * { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +ion-button.ion-text-wrap { + white-space: normal; + core-format-text .core-format-text-content { + white-space: normal; + display: contents; + } + + & > * { + white-space: normal; + } +} + + @each $color-name, $value in $colors { $value: map-get($colors, $color-name); $base: map-get($value, base);