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

Function resizeNavigation

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

Source from the content-addressed store, hash-verified

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();
685 function activate(name) {

Callers 1

viewer.jsFile · 0.85

Calls 1

$Function · 0.85

Tested by

no test coverage detected