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);