From 8bf15b305bedb9e2a03c8853ee143dd5aae6a3ea Mon Sep 17 00:00:00 2001
From: Paul Rangger <48455539+PaRangger@users.noreply.github.com>
Date: Fri, 25 Oct 2024 00:44:12 +0200
Subject: [PATCH] Communication: Fix clipping issues on mobile devices (#9460)
---
src/main/webapp/app/core/core.module.ts | 4 +
.../course-conversations.component.html | 15 +-
.../course-conversations.component.scss | 70 ++++++
.../course-conversations.component.ts | 81 ++++++-
.../course-wide-search.component.html | 199 +++++++++---------
.../course-wide-search.component.scss | 40 ++++
.../course-wide-search.component.ts | 11 +-
.../conversation-header.component.html | 11 +-
.../conversation-header.component.ts | 12 +-
.../conversation-messages.component.html | 22 +-
.../conversation-messages.component.scss | 14 +-
.../conversation-messages.component.ts | 14 ++
...conversation-thread-sidebar.component.scss | 13 ++
.../overview/course-overview.component.html | 9 +-
.../overview/course-overview.component.scss | 16 ++
.../app/overview/course-overview.component.ts | 21 ++
.../app/overview/course-sidebar.service.ts | 24 +++
.../app/shared/breakpoints/layout.service.ts | 2 +-
.../answer-post/answer-post.component.scss | 10 +
.../app/shared/metis/metis.component.scss | 24 +++
.../answer-post-header.component.html | 14 +-
.../post-header/post-header.component.html | 14 +-
.../app/shared/sidebar/sidebar.component.scss | 2 +
.../app/shared/sidebar/sidebar.component.ts | 45 ++--
src/main/webapp/content/scss/global.scss | 4 +-
src/main/webapp/i18n/de/metis.json | 4 +-
src/main/webapp/i18n/en/metis.json | 4 +-
.../course/course-overview.component.spec.ts | 17 +-
.../course-conversations.component.spec.ts | 78 +++++++
.../shared/sidebar/sidebar.component.spec.ts | 8 +
.../overview/course-sidebar.service.spec.ts | 52 +++++
31 files changed, 703 insertions(+), 151 deletions(-)
create mode 100644 src/main/webapp/app/overview/course-sidebar.service.ts
create mode 100644 src/test/javascript/spec/service/overview/course-sidebar.service.spec.ts
diff --git a/src/main/webapp/app/core/core.module.ts b/src/main/webapp/app/core/core.module.ts
index a371ea41e9b1..30c0442557b2 100644
--- a/src/main/webapp/app/core/core.module.ts
+++ b/src/main/webapp/app/core/core.module.ts
@@ -20,6 +20,7 @@ import { NgbDateDayjsAdapter } from 'app/core/config/datepicker-adapter';
import { JhiLanguageHelper } from 'app/core/language/language.helper';
import { TraceService } from '@sentry/angular';
import { Router } from '@angular/router';
+import isMobile from 'ismobilejs-es5';
@NgModule({
imports: [
@@ -109,5 +110,8 @@ export class ArtemisCoreModule {
const languageKey = sessionStorageService.retrieve('locale') || languageHelper.determinePreferredLanguage();
translateService.use(languageKey);
tooltipConfig.container = 'body';
+ if (isMobile(window.navigator.userAgent).any ?? false) {
+ tooltipConfig.disableTooltip = true;
+ }
}
}
diff --git a/src/main/webapp/app/overview/course-conversations/course-conversations.component.html b/src/main/webapp/app/overview/course-conversations/course-conversations.component.html
index fd62d2f7e57e..113ab1ca1cd8 100644
--- a/src/main/webapp/app/overview/course-conversations/course-conversations.component.html
+++ b/src/main/webapp/app/overview/course-conversations/course-conversations.component.html
@@ -10,7 +10,7 @@
(keyup.enter)="onSearch()"
placeholder="{{ 'artemisApp.metis.overview.searchBarDefault' | artemisTranslate }}"
/>
-