]> BookStack Code Mirror - bookstack/commit
Dropdowns: Fixed bad direction logic, added dynmaic height
authorDan Brown <redacted>
Tue, 7 Nov 2023 15:07:11 +0000 (15:07 +0000)
committerDan Brown <redacted>
Tue, 7 Nov 2023 15:07:11 +0000 (15:07 +0000)
commitfa6ac211b61bd3d86dadc558c89f7366f6613ab3
tree4df2b6ec0ab426d6c6a8ccefb94d5523fd98291c
parentea0469e61ae20be5020cae6aadab678fb2bde8bd
Dropdowns: Fixed bad direction logic, added dynmaic height

Changes since adding notifications would cause direction to be assessed
upon max height of 80vh, which caused large dropdowns like the audit log
dropdown to drop up and/or go offscreen.
This restores the default assessment of 500px, and adds dynamic
max-height adjustment to provide more room for large dropdowns.

For #4652
resources/js/components/dropdown.js
resources/sass/_lists.scss
resources/views/settings/audit.blade.php