style: run prettier
All checks were successful
TrafficCue CI / check (push) Successful in 1m27s
TrafficCue CI / build (push) Successful in 1m43s

This commit is contained in:
2025-09-06 18:37:38 +02:00
parent 9d226f3387
commit d1e86ce174
6 changed files with 24 additions and 16 deletions

View File

@ -84,21 +84,25 @@
$effect(() => {
const fullHeight = window.innerHeight - 20 - 40 - 10;
if (fullscreen[view.current.type]) {
if(sidebarHeight != fullHeight) {
if(window.innerWidth < 768) {
if (sidebarHeight != fullHeight) {
if (window.innerWidth < 768) {
hideSearch = true;
map.ignorePadding = true;
}
previousHeight = sidebarHeight;
sidebarHeight = fullHeight;
requestAnimationFrame(() => { map.updateMapPadding(); } );
requestAnimationFrame(() => {
map.updateMapPadding();
});
}
} else {
hideSearch = false;
if(sidebarHeight == fullHeight) {
if (sidebarHeight == fullHeight) {
map.ignorePadding = false;
sidebarHeight = previousHeight;
requestAnimationFrame(() => { map.updateMapPadding(); } );
requestAnimationFrame(() => {
map.updateMapPadding();
});
}
}
});