From 47f0d2488efd990fe1afe961a359c8be4d435304 Mon Sep 17 00:00:00 2001 From: Artem Dzhereleiko Date: Fri, 13 Dec 2024 12:15:51 +0200 Subject: [PATCH] UI: Fixed background settings popover --- .../settings/common/background-settings-panel.component.scss | 2 ++ .../widget/lib/settings/common/background-settings.component.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/background-settings-panel.component.scss b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/background-settings-panel.component.scss index 6bc83fe967..d907e20f64 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/background-settings-panel.component.scss +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/background-settings-panel.component.scss @@ -17,6 +17,8 @@ .tb-background-settings-panel { width: 620px; + min-height: 300px; + max-height: 90vh; display: flex; flex-direction: column; gap: 16px; diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/background-settings.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/background-settings.component.ts index 66dd774a21..828f424b51 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/background-settings.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/common/background-settings.component.ts @@ -110,7 +110,7 @@ export class BackgroundSettingsComponent implements OnInit, ControlValueAccessor backgroundSettings: this.modelValue }; const backgroundSettingsPanelPopover = this.popoverService.displayPopover(trigger, this.renderer, - this.viewContainerRef, BackgroundSettingsPanelComponent, ['leftOnly', 'leftTopOnly', 'leftBottomOnly'], true, null, + this.viewContainerRef, BackgroundSettingsPanelComponent, ['left'], true, null, ctx, {}, {}, {}, true);