MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / clampPanelWidth

Function clampPanelWidth

packages/app-core/src/store.ts:326–328  ·  view source on GitHub ↗
(px: number)

Source from the content-addressed store, hash-verified

324}
325
326function clampPanelWidth(px: number): number {
327 return Math.min(MAX_RIGHT_PANEL_WIDTH, Math.max(MIN_RIGHT_PANEL_WIDTH, Math.round(px)))
328}
329
330function normalizePanelWidths(value: unknown): PanelWidths {
331 const v = (value ?? {}) as Partial<Record<RightPanelId, unknown>>

Callers 2

pickFunction · 0.85
store.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected