mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
set top postion to widow_padding
This commit is contained in:
parent
b33f4e2dc6
commit
1f1a708388
@ -79,7 +79,7 @@ export default function RelativeModal({
|
||||
}
|
||||
// too close to bottom
|
||||
if (top + menuHeight > windowHeight - WINDOW_PADDING + window.scrollY) {
|
||||
newTop = relativeToY - menuHeight;
|
||||
newTop = WINDOW_PADDING;
|
||||
}
|
||||
|
||||
if (top <= WINDOW_PADDING + window.scrollY) {
|
||||
|
Loading…
Reference in New Issue
Block a user