Use the correct event listener to adjust minimap positioning (#12896)

pull/12899/head
Thibaud Colas 2025-02-18 18:53:33 +00:00 zatwierdzone przez Matt Westcott
rodzic 3e24fee094
commit 952ee04f08
3 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -26,6 +26,7 @@ Changelog
* Fix: Prevent error when filtering by locale and searching with Elasticsearch (Sage Abdullah)
* Fix: Support searching `none()` querysets (Matt Westcott)
* Fix: Correctly handle UUID primary keys when invoking background tasks (Matt Westcott)
* Fix: Ensure the top of the minimap correctly adjusts when resizing the browser viewport (Thibaud Colas)
* Maintenance: Remove upper version boundary for django-filter. (Dan Braghis)

Wyświetl plik

@ -127,7 +127,7 @@ export const initMinimap = (
container.style.setProperty('--offset-top', `${container.offsetTop}px`);
const updateOffsetTop = debounce(setOffsetTop, 100);
document.addEventListener('resize', updateOffsetTop);
window.addEventListener('resize', updateOffsetTop);
setOffsetTop();
updateMinimap(container);

Wyświetl plik

@ -16,6 +16,7 @@ depth: 1
* Prevent error when filtering by locale and searching with Elasticsearch (Sage Abdullah)
* Support searching `none()` querysets (Matt Westcott)
* Correctly handle UUID primary keys when invoking background tasks (Matt Westcott)
* Ensure the top of the minimap correctly adjusts when resizing the browser viewport (Thibaud Colas)
### Maintenance