dropdown fix

This commit is contained in:
Yuri Kuznetsov
2025-04-25 19:44:56 +03:00
parent a41374ef74
commit 96bf57fea7
+4 -1
View File
@@ -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';