MCPcopy
hub / github.com/simstudioai/sim / clampPanelWidth

Function clampPanelWidth

apps/sim/stores/logs/utils.ts:26–30  ·  view source on GitHub ↗
(width: number)

Source from the content-addressed store, hash-verified

24 * so a small viewport never produces a panel that covers more than 60vw.
25 */
26export const clampPanelWidth = (width: number) => {
27 const max = getMaxLogDetailsWidth()
28 const min = Math.min(MIN_LOG_DETAILS_WIDTH, max)
29 return Math.max(min, Math.min(width, max))
30}

Callers 1

store.tsFile · 0.90

Calls 1

getMaxLogDetailsWidthFunction · 0.85

Tested by

no test coverage detected