From 8e4ae301c36955def78c1fa00512687c9e60d376 Mon Sep 17 00:00:00 2001 From: Saleh Yusefnejad Date: Thu, 15 Aug 2024 19:44:26 +0330 Subject: [PATCH] fix(blazorui): resolve BitCallout issues #8320 (#8321) --- .../Components/Surfaces/Callout/BitCallout.razor.cs | 2 +- .../Components/Surfaces/Callout/BitCallout.scss | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Callout/BitCallout.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Callout/BitCallout.razor.cs index c6d88f9403..1feb9a3a1c 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Callout/BitCallout.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Callout/BitCallout.razor.cs @@ -166,7 +166,7 @@ await _js.ToggleCallout(_dotnetObj, 0, "", "", - true, + false, RootElementClass); await OnToggle.InvokeAsync(IsOpen); diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Callout/BitCallout.scss b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Callout/BitCallout.scss index 7a791bc6e1..60c07c554d 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Callout/BitCallout.scss +++ b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Callout/BitCallout.scss @@ -10,6 +10,10 @@ } } +.bit-clo-acn { + width: fit-content; +} + .bit-clo-ovl { top: 0; left: 0; @@ -24,13 +28,12 @@ .bit-clo-cal { display: none; position: fixed; - overflow: hidden auto; min-width: max-content; box-sizing: border-box; z-index: $zindex-callout; - background-color: $clr-bg-pri; animation-fill-mode: both; animation-duration: 0.367s; + background-color: $clr-bg-pri; animation-name: bit-fade-show, bit-slide-down; animation-timing-function: cubic-bezier(0.1, 0.9, 0.2, 1); }