added screen padding
LocationBasedServices/smartguide/pipeline/head This commit looks good

This commit is contained in:
Kazgatari
2026-08-10 23:21:42 +02:00
parent 0a465bc7e1
commit af9f9a25da
@@ -130,12 +130,14 @@ export class ComponentTooltipDirective<T extends object> 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);