MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / closeMobileFiles

Function closeMobileFiles

libatomic/src/review/viewer.js:681–681  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

679 }
680 const mobileFiles = matchMedia('(max-width:700px)');
681 function closeMobileFiles() { if (mobileFiles.matches) $('file-drawer').open = false; }
682 function resizeNavigation() { $('file-drawer').open = !mobileFiles.matches; }
683 mobileFiles.addEventListener('change', resizeNavigation);
684 resizeNavigation();

Callers 1

renderNavigationFunction · 0.85

Calls 1

$Function · 0.85

Tested by

no test coverage detected