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:
Reece Browne 2025-07-05 13:01:51 +01:00 committed by GitHub
parent e5bf38c175
commit 619a98d289
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,7 +92,7 @@
// Check if this is a right-aligned dropdown (language, favorites, search, etc.)
const isRightAligned = navbar && navbar.classList.contains('flex-nowrap') &&
!parentItem.closest('.dropdown-mega');
!parentItem?.closest('.dropdown-mega');
dropdown.style.transformOrigin = isRightAligned ? 'top right' : 'top left';
});