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

Function onResize

packages/shared/src/components/shell/ReadingDrawer.tsx:846–852  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

844 };
845 // The heights come from the card layout; the full one keeps them.
846 const onResize = () => {
847 if (layout === 'card') {
848 current = measure(headElement, probe);
849 geometry.current = current;
850 }
851 update();
852 };
853 // A layer or a toast arriving changes what the wrapper may pass
854 // through; a toast is measured again once it has slid in.
855 const layers = new MutationObserver(() => {

Callers 1

WidgetCellFunction · 0.50

Calls 2

measureFunction · 0.70
updateFunction · 0.70

Tested by

no test coverage detected