From dd13391c4dd8377558cf1e280f47cf6fd20dd6ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 29 Nov 2022 09:21:14 +0100 Subject: [PATCH] MOBILE-4081 tag: Do not select any tag if on mobile view --- src/core/components/split-view/split-view.scss | 1 + src/core/features/tag/pages/index/index.page.ts | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/core/components/split-view/split-view.scss b/src/core/components/split-view/split-view.scss index fa9da2e18..ab8692946 100644 --- a/src/core/components/split-view/split-view.scss +++ b/src/core/components/split-view/split-view.scss @@ -74,6 +74,7 @@ --menu-border-width: 0px; --menu-box-shadow: none; --menu-z: 0px; + --selected-item-border-width: 0px; --selected-item-color: transparent; } diff --git a/src/core/features/tag/pages/index/index.page.ts b/src/core/features/tag/pages/index/index.page.ts index 86722010b..1e72b4866 100644 --- a/src/core/features/tag/pages/index/index.page.ts +++ b/src/core/features/tag/pages/index/index.page.ts @@ -43,7 +43,7 @@ export class CoreTagIndexPage implements OnInit { areas: CoreTagAreaDisplay[] = []; /** - * View loaded. + * @inheritdoc */ async ngOnInit(): Promise { this.tagId = CoreNavigator.getRouteNumberParam('tagId') || this.tagId; @@ -143,7 +143,14 @@ export class CoreTagIndexPage implements OnInit { * @param area Area. */ openArea(area: CoreTagAreaDisplay): void { - this.selectedAreaId = area.id; + if (area.id === this.selectedAreaId) { + // Already opened. + return; + } + + if (CoreScreen.isTablet) { + this.selectedAreaId = area.id; + } const params = { tagId: this.tagId,