From 5ad0326910f8a6a7d11e329a88882a59ad68227d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 8 Jun 2021 13:15:36 +0200 Subject: [PATCH 1/4] MOBILE-3320 core: Fix some icon rtl flipping --- src/addons/calendar/pages/edit-event/edit-event.html | 2 +- .../pages/group-conversations/group-conversations.html | 8 +++++--- src/addons/mod/forum/components/edit-post/edit-post.html | 2 +- src/addons/mod/forum/components/post/post.html | 2 +- .../mod/forum/pages/new-discussion/new-discussion.html | 2 +- src/core/components/empty-box/core-empty-box.html | 2 +- .../send-message-form/core-send-message-form.html | 2 +- .../search/components/search-box/core-search-box.html | 2 +- src/theme/theme.base.scss | 6 ------ 9 files changed, 12 insertions(+), 16 deletions(-) diff --git a/src/addons/calendar/pages/edit-event/edit-event.html b/src/addons/calendar/pages/edit-event/edit-event.html index f989bda39..02609e8b4 100644 --- a/src/addons/calendar/pages/edit-event/edit-event.html +++ b/src/addons/calendar/pages/edit-event/edit-event.html @@ -102,7 +102,7 @@ - +

{{ 'core.showmore' | translate }}

diff --git a/src/addons/messages/pages/group-conversations/group-conversations.html b/src/addons/messages/pages/group-conversations/group-conversations.html index c0b9cfb62..61639f1b4 100644 --- a/src/addons/messages/pages/group-conversations/group-conversations.html +++ b/src/addons/messages/pages/group-conversations/group-conversations.html @@ -45,7 +45,8 @@ role="heading" detail="false" > - +

{{ 'core.favourites' | translate }} ({{ favourites.count }})

@@ -80,7 +81,7 @@ role="heading" detail="false" > - +

{{ 'addon.messages.groupconversations' | translate }} ({{ group.count }})

@@ -114,7 +115,8 @@ role="heading" detail="false" > - +

{{ 'addon.messages.individualconversations' | translate }} ({{ individual.count }})

diff --git a/src/addons/mod/forum/components/edit-post/edit-post.html b/src/addons/mod/forum/components/edit-post/edit-post.html index 21a433fd8..402e86e56 100644 --- a/src/addons/mod/forum/components/edit-post/edit-post.html +++ b/src/addons/mod/forum/components/edit-post/edit-post.html @@ -34,7 +34,7 @@ aria-controls="addon-mod-forum-advanced" [attr.aria-label]="(advanced ? 'core.hideadvanced' : 'core.showadvanced') | translate" > - +

{{ 'addon.mod_forum.advanced' | translate }}

diff --git a/src/addons/mod/forum/components/post/post.html b/src/addons/mod/forum/components/post/post.html index 0b1f4d993..7f50fb188 100644 --- a/src/addons/mod/forum/components/post/post.html +++ b/src/addons/mod/forum/components/post/post.html @@ -130,7 +130,7 @@ [attr.aria-controls]="'addon-forum-reply-edit-form-advanced-' + uniqueId" [attr.aria-label]="(advanced ? 'core.hideadvanced' : 'core.showadvanced') | translate" > - +

{{ 'addon.mod_forum.advanced' | translate }}

diff --git a/src/addons/mod/forum/pages/new-discussion/new-discussion.html b/src/addons/mod/forum/pages/new-discussion/new-discussion.html index b93e09ee3..641d29826 100644 --- a/src/addons/mod/forum/pages/new-discussion/new-discussion.html +++ b/src/addons/mod/forum/pages/new-discussion/new-discussion.html @@ -41,7 +41,7 @@ role="heading" aria-controls="addon-mod-forum-new-discussion-advanced" > - +

{{ 'addon.mod_forum.advanced' | translate }}

diff --git a/src/core/components/empty-box/core-empty-box.html b/src/core/components/empty-box/core-empty-box.html index b09fc1168..89f21cb33 100644 --- a/src/core/components/empty-box/core-empty-box.html +++ b/src/core/components/empty-box/core-empty-box.html @@ -1,7 +1,7 @@
- +

{{ message }}

diff --git a/src/core/components/send-message-form/core-send-message-form.html b/src/core/components/send-message-form/core-send-message-form.html index 1cf08fbd8..9d1efea42 100644 --- a/src/core/components/send-message-form/core-send-message-form.html +++ b/src/core/components/send-message-form/core-send-message-form.html @@ -19,6 +19,6 @@ - + diff --git a/src/core/features/search/components/search-box/core-search-box.html b/src/core/features/search/components/search-box/core-search-box.html index 8ac3dbdfc..79aac7e7f 100644 --- a/src/core/features/search/components/search-box/core-search-box.html +++ b/src/core/features/search/components/search-box/core-search-box.html @@ -13,7 +13,7 @@ - + diff --git a/src/theme/theme.base.scss b/src/theme/theme.base.scss index 0defd7a37..cf09aaa2e 100644 --- a/src/theme/theme.base.scss +++ b/src/theme/theme.base.scss @@ -227,12 +227,6 @@ ion-button.button-small ion-icon.faicon[slot] { font-size: 1.5em !important; } -[dir=rtl] ion-icon.icon-flip-rtl, -[dir=rtl] ion-item::part(detail-icon), -[dir=rtl] ion-icon.item-detail-icon { - transform: scaleX(-1); -} - // Buttons. ion-button, ion-fab-button, 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 2/4] 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); From b335b5123a65bbf0a5153dc67de46174db28a7e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 8 Jun 2021 15:59:20 +0200 Subject: [PATCH 3/4] MOBILE-3320 core: Fix iFrame help button styles --- src/core/components/iframe/core-iframe.html | 4 ++-- src/core/directives/format-text.ts | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/core/components/iframe/core-iframe.html b/src/core/components/iframe/core-iframe.html index dc4d5a01d..c8cf72ddc 100644 --- a/src/core/components/iframe/core-iframe.html +++ b/src/core/components/iframe/core-iframe.html @@ -10,9 +10,9 @@ color="dark" expand="block" fill="clear" (click)="openIframeHelpModal()" aria-haspopup="dialog" - class="core-button-as-link" + class="core-button-as-link core-iframe-help" > - {{ 'core.iframehelp' | translate }} + {{ 'core.iframehelp' | translate }} diff --git a/src/core/directives/format-text.ts b/src/core/directives/format-text.ts index adb0641a3..84c15bbe8 100644 --- a/src/core/directives/format-text.ts +++ b/src/core/directives/format-text.ts @@ -799,13 +799,12 @@ export class CoreFormatTextDirective implements OnChanges { protected addIframeHelp(iframe: HTMLIFrameElement): void { const helpDiv = document.createElement('div'); - helpDiv.classList.add('ion-text-center'); - helpDiv.classList.add('ion-text-wrap'); - helpDiv.classList.add('core-iframe-help'); + helpDiv.classList.add('ion-text-center', 'ion-text-wrap'); const button = document.createElement('ion-button'); button.setAttribute('fill', 'clear'); button.setAttribute('aria-haspopup', 'dialog'); + button.classList.add('core-iframe-help', 'core-button-as-link'); button.innerHTML = Translate.instant('core.iframehelp'); button.addEventListener('click', () => { From b6e0bc2340bdac5cccc049cd718c26441bfdeb97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 8 Jun 2021 16:12:56 +0200 Subject: [PATCH 4/4] MOBILE-3320 rte: Minor RTE style fixes --- src/addons/calendar/pages/day/day.html | 2 +- src/core/components/loading/loading.scss | 4 ---- .../core-editor-rich-text-editor.html | 6 +++--- .../components/rich-text-editor/rich-text-editor.scss | 4 ++++ src/theme/theme.base.scss | 11 ++++++++++- 5 files changed, 18 insertions(+), 9 deletions(-) diff --git a/src/addons/calendar/pages/day/day.html b/src/addons/calendar/pages/day/day.html index 5177df833..4ca58a438 100644 --- a/src/addons/calendar/pages/day/day.html +++ b/src/addons/calendar/pages/day/day.html @@ -53,7 +53,7 @@ - diff --git a/src/core/components/loading/loading.scss b/src/core/components/loading/loading.scss index 4cadd853f..98f596285 100644 --- a/src/core/components/loading/loading.scss +++ b/src/core/components/loading/loading.scss @@ -47,10 +47,6 @@ @include margin(10px, 0, 0, 0); } - .core-loading-content { - display: contents; - } - &.core-loading-noheight .core-loading-content { height: auto; } diff --git a/src/core/features/editor/components/rich-text-editor/core-editor-rich-text-editor.html b/src/core/features/editor/components/rich-text-editor/core-editor-rich-text-editor.html index e3422805d..c3ce29d1c 100644 --- a/src/core/features/editor/components/rich-text-editor/core-editor-rich-text-editor.html +++ b/src/core/features/editor/components/rich-text-editor/core-editor-rich-text-editor.html @@ -48,7 +48,7 @@ - - -