From 52459a467336c120dd2cc1dac3c07ab411841233 Mon Sep 17 00:00:00 2001 From: Kiri111enz Date: Thu, 15 Feb 2024 14:53:56 +0300 Subject: [PATCH] fix: prevent fb popup alt axis overflow --- src/components/Feedback/controls/DislikeVariantsPopup.tsx | 1 + src/components/Feedback/controls/SuccessPopup.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/Feedback/controls/DislikeVariantsPopup.tsx b/src/components/Feedback/controls/DislikeVariantsPopup.tsx index d3be60cf..9bf861ef 100644 --- a/src/components/Feedback/controls/DislikeVariantsPopup.tsx +++ b/src/components/Feedback/controls/DislikeVariantsPopup.tsx @@ -164,6 +164,7 @@ const DislikeVariantsPopup: React.FC = memo( onOutsideClick={onOutsideClick} contentClassName={b('variants-popup', {view})} placement={position} + modifiers={[{name: 'preventOverflow', options: {padding: 1, altBoundary: true, altAxis: true}}]} >

{t('dislike-variants-title')}

diff --git a/src/components/Feedback/controls/SuccessPopup.tsx b/src/components/Feedback/controls/SuccessPopup.tsx index da53800d..2ec10cbe 100644 --- a/src/components/Feedback/controls/SuccessPopup.tsx +++ b/src/components/Feedback/controls/SuccessPopup.tsx @@ -34,6 +34,7 @@ const SuccessPopup = memo(({visible, anchor, onOutsideClick, onOutsideClick={onOutsideClick} contentClassName={b('success-popup', {view})} placement={position} + modifiers={[{name: 'preventOverflow', options: {padding: 1, altBoundary: true, altAxis: true}}]} >

{t('success-title')}

{t('success-text')}