MCPcopy Create free account
hub / github.com/dailydotdev/apps / setLayout

Function setLayout

packages/shared/src/components/shell/ReadingDrawer.tsx:547–553  ·  view source on GitHub ↗
(next: 'card' | 'full')

Source from the content-addressed store, hash-verified

545 }
546 };
547 const setLayout = (next: 'card' | 'full') => {
548 if (layout === next) {
549 return;
550 }
551 layout = next;
552 root.classList.toggle('reading-full', next === 'full');
553 };
554
555 // The opening is a transform the compositor plays, so the page glides
556 // even while the wrapper is busy putting the article behind it. Until

Callers 2

InContextFunction · 0.85
settleAtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected