From 96bf57fea78b84cb1c1e883ca3d3d0739b580252 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 25 Apr 2025 19:44:56 +0300 Subject: [PATCH] dropdown fix --- client/src/ui/app-init.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/ui/app-init.js b/client/src/ui/app-init.js index c094410a16..14a6f6ccb1 100644 --- a/client/src/ui/app-init.js +++ b/client/src/ui/app-init.js @@ -89,7 +89,10 @@ function uiAppInit() { } } - if (target.getBoundingClientRect().left - width < 0) { + if ( + dropdownElement.classList.contains('pull-right') && + target.getBoundingClientRect().left - width < 0 + ) { const maxWidth = target.getBoundingClientRect().right - target.getBoundingClientRect().width / 2; dropdownElement.style.maxWidth = maxWidth + 'px';