Skip to content

Commit

Permalink
fix: prevent fb popup alt axis overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiri111enz committed Feb 15, 2024
1 parent 8449929 commit 52459a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Feedback/controls/DislikeVariantsPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ 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
1 change: 1 addition & 0 deletions src/components/Feedback/controls/SuccessPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ 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 52459a4

Please sign in to comment.