From c7b0d5568c61b1dcb26531211a394270b06877fd Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Mon, 5 Aug 2024 11:22:42 +0800 Subject: [PATCH] Fix options pop up being both first and last Signed-off-by: Egor Savkin --- static/js/shop/options/DialogPopup.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/shop/options/DialogPopup.jsx b/static/js/shop/options/DialogPopup.jsx index f5efa3a..443c308 100644 --- a/static/js/shop/options/DialogPopup.jsx +++ b/static/js/shop/options/DialogPopup.jsx @@ -12,7 +12,7 @@ export function DialogPopup({options, data, target, id, big, first, last, option } ); - let div_classes = `overlayVariant border rounded ${big ? "overlay-bigcard" : "overlay-smallcard"} ${(!big && first) ? "overlay-first" : ""} ${(!big && last) ? "overlay-last" : ""} ${options_class || ""}`; + let div_classes = `overlayVariant border rounded ${big ? "overlay-bigcard" : "overlay-smallcard"} ${(!big && first) ? "overlay-first" : ""} ${(!big && last && !first) ? "overlay-last" : ""} ${options_class || ""}`; const handleClick = (_event) => { setShow(!show); };