MCPcopy Create free account
hub / github.com/codeaashu/claude-code / handleFitToggle

Function handleFitToggle

web/components/file-viewer/ImageViewer.tsx:20–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 const handleZoomIn = () => setZoom((z) => Math.min(z * 1.25, 8));
19 const handleZoomOut = () => setZoom((z) => Math.max(z / 1.25, 0.1));
20 const handleFitToggle = () => {
21 setFitMode((m) => (m === "fit" ? "actual" : "fit"));
22 setZoom(1);
23 };
24
25 const isSvg = path.endsWith(".svg");
26 const hasTransparency = path.endsWith(".png") || path.endsWith(".gif") ||

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected