From f61886b9da81b6c9b12ff9a23fc91a8a569f5f42 Mon Sep 17 00:00:00 2001 From: Aliullov Vlad <91639107+GoodDayForSurf@users.noreply.github.com> Date: Fri, 8 Dec 2023 12:01:06 +0400 Subject: [PATCH] Fix display tooltip on overlay block (#206) * Redesign header, footer, favicon (#196) * fix tooltip in overlay block + alignment --- .../preview/overlays/overlays.component.css | 13 ++++ .../preview/overlays/overlays.component.html | 75 ++++++++++--------- .../preview/overlays/overlays.component.ts | 2 - 3 files changed, 51 insertions(+), 39 deletions(-) diff --git a/src/app/preview/overlays/overlays.component.css b/src/app/preview/overlays/overlays.component.css index ac94bd40..52aca7a9 100644 --- a/src/app/preview/overlays/overlays.component.css +++ b/src/app/preview/overlays/overlays.component.css @@ -25,11 +25,24 @@ width: 250px; } +#tooltip-block { + position: relative; +} + +#tooltip-block::ng-deep .dx-tooltip-wrapper { + position: initial !important; +} + #loadpanel-block { width: 240px; } +:host-context(.dx-theme-fluent-typography) #loadpanel-block { + width: 140px; +} + #tooltip-block { + height: auto; width: 140px; } diff --git a/src/app/preview/overlays/overlays.component.html b/src/app/preview/overlays/overlays.component.html index 2e7658c9..3d67934c 100644 --- a/src/app/preview/overlays/overlays.component.html +++ b/src/app/preview/overlays/overlays.component.html @@ -8,22 +8,23 @@
-
+
 
- - -

Tooltip

+ [animation]="null" + [visible]="true" + [hideOnParentScroll]="false" + [position]="{at: 'right', my: 'right'}" + [hideOnOutsideClick]="false"> +
Tooltip
- - - + - +
Tooltip content
- - - - diff --git a/src/app/preview/overlays/overlays.component.ts b/src/app/preview/overlays/overlays.component.ts index c2bee0ff..d39ce7dd 100644 --- a/src/app/preview/overlays/overlays.component.ts +++ b/src/app/preview/overlays/overlays.component.ts @@ -16,8 +16,6 @@ export class OverlaysComponent implements OnInit, OnDestroy { widgetGroup = 'overlays'; isExpanded = new BehaviorSubject(false); - isExpandedValue = false; - ofValue = '#loadpanel-target'; actionSheetData: any[] = [