From af9f9a25da532500f101a38b2c439a0a5bbe7da7 Mon Sep 17 00:00:00 2001 From: Kazgatari <56477241+Kazgatari@users.noreply.github.com> Date: Mon, 10 Aug 2026 23:21:42 +0200 Subject: [PATCH] added screen padding --- webapp/src/app/directives/component-tooltip.directive.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/src/app/directives/component-tooltip.directive.ts b/webapp/src/app/directives/component-tooltip.directive.ts index 9a945510..daccfa52 100644 --- a/webapp/src/app/directives/component-tooltip.directive.ts +++ b/webapp/src/app/directives/component-tooltip.directive.ts @@ -130,12 +130,14 @@ export class ComponentTooltipDirective implements OnDestroy { .flexibleConnectedTo(this.elementRef) .withPositions(positions) .withFlexibleDimensions(false) + .withViewportMargin(12) .withPush(true); this.overlayRef = this.overlay.create({ positionStrategy, scrollStrategy: this.overlay.scrollStrategies.reposition(), panelClass: 'app-tooltip-panel', + maxWidth: this.tooltipMaxWidth() ?? 'calc(100vw - 24px)', }); const portal = new ComponentPortal(this.component(), null, this.injector);