From 801936899a492dff3a93488ca21605ec66ed89dd Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Tue, 19 Mar 2024 10:53:22 +0800 Subject: [PATCH] Fix notification overlay making "added" notification disappear on touchables When notification doesn't fit viewport on touch-enabled devices, it makes the canvas extend to its boundaries, braking the fixed positioned elements placement Signed-off-by: Egor Savkin --- static/js/shop/options/Notification.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/shop/options/Notification.jsx b/static/js/shop/options/Notification.jsx index 2087a71..abfb69f 100644 --- a/static/js/shop/options/Notification.jsx +++ b/static/js/shop/options/Notification.jsx @@ -11,6 +11,9 @@ export function Notification({id, tip, content, sideMenuIsOpen, show, onHide}) { overlay={props => {tip}} rootClose={!sideMenuIsOpen} onToggle={onHide} + popperConfig={{ + strategy: 'fixed' + }} > {content}