Monorepo for Tangled tangled.org

appview/pages/pulls: prevent overscrolling when bottom sheet is open

in mobile view, when the bottom sheet is open, overscrolling the sheet
would cause the underlying page to start scrolling. this adds a bit of
js to the page to avoid this behavior.

Signed-off-by: oppiliappan <me@oppi.li>

oppi.li 8fab832a 6721acdb

verified
+2
+2
appview/pages/templates/repo/pulls/pull.html
··· 31 31 if (details.open && !isDesktop()) { 32 32 backdrop.classList.remove('opacity-0', 'pointer-events-none'); 33 33 backdrop.classList.add('opacity-100', 'pointer-events-auto'); 34 + document.body.style.overflow = 'hidden'; 34 35 } else { 35 36 backdrop.classList.remove('opacity-100', 'pointer-events-auto'); 36 37 backdrop.classList.add('opacity-0', 'pointer-events-none'); 38 + document.body.style.overflow = ''; 37 39 } 38 40 } 39 41 };