mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 22:29:24 +00:00
Update stirling-pdf/src/main/resources/templates/fragments/common.html
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
e5bf38c175
commit
619a98d289
@ -92,7 +92,7 @@
|
|||||||
|
|
||||||
// Check if this is a right-aligned dropdown (language, favorites, search, etc.)
|
// Check if this is a right-aligned dropdown (language, favorites, search, etc.)
|
||||||
const isRightAligned = navbar && navbar.classList.contains('flex-nowrap') &&
|
const isRightAligned = navbar && navbar.classList.contains('flex-nowrap') &&
|
||||||
!parentItem.closest('.dropdown-mega');
|
!parentItem?.closest('.dropdown-mega');
|
||||||
|
|
||||||
dropdown.style.transformOrigin = isRightAligned ? 'top right' : 'top left';
|
dropdown.style.transformOrigin = isRightAligned ? 'top right' : 'top left';
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user