From 4941b51fa4a2a47f8af55ccc347bad4b9d47f98b Mon Sep 17 00:00:00 2001 From: Maksim Eltyshev Date: Thu, 15 Dec 2022 01:38:03 +0100 Subject: [PATCH] fix: Prevent popup from overflowing --- client/src/lib/popup/with-popup.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/lib/popup/with-popup.jsx b/client/src/lib/popup/with-popup.jsx index 50c2302b..02a0d0dc 100755 --- a/client/src/lib/popup/with-popup.jsx +++ b/client/src/lib/popup/with-popup.jsx @@ -80,8 +80,10 @@ export default (WrappedComponent, defaultProps) => { popperModifiers={[ { name: 'preventOverflow', + enabled: true, options: { - boundariesElement: 'window', + altAxis: true, + padding: 20, }, }, ]}