Skip to content

Commit

Permalink
disable tooltips on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablosanqt committed Oct 16, 2024
1 parent 927364b commit bf5f3ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/webapp/app/core/core.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down Expand Up @@ -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;
}
}
}

0 comments on commit bf5f3ed

Please sign in to comment.