Skip to content

Commit

Permalink
fix: prevent fb popup alt axis overflow (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiri111enz authored Feb 15, 2024
1 parent 8449929 commit a6f4af2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Feedback/controls/DislikeVariantsPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ const DislikeVariantsPopup: React.FC<DislikeVariantsPopupProps> = memo(
onOutsideClick={onOutsideClick}
contentClassName={b('variants-popup', {view})}
placement={position}
modifiers={[
{
name: 'preventOverflow',
options: {padding: 1, altBoundary: true, altAxis: true},
},
]}
>
<h3 className={b('popup-title')}>{t<string>('dislike-variants-title')}</h3>
<form onSubmit={onFormSubmit}>
Expand Down
3 changes: 3 additions & 0 deletions src/components/Feedback/controls/SuccessPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ const SuccessPopup = memo<SuccessPopupProps>(({visible, anchor, onOutsideClick,
onOutsideClick={onOutsideClick}
contentClassName={b('success-popup', {view})}
placement={position}
modifiers={[
{name: 'preventOverflow', options: {padding: 1, altBoundary: true, altAxis: true}},
]}
>
<h3 className={b('popup-title')}>{t<string>('success-title')}</h3>
<p className={b('popup-text')}>{t<string>('success-text')}</p>
Expand Down

0 comments on commit a6f4af2

Please sign in to comment.