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

Function getMaxLogDetailsWidth

apps/sim/stores/logs/utils.ts:18–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 * Falls back to a reasonable default for SSR.
17 */
18export const getMaxLogDetailsWidth = () =>
19 typeof window !== 'undefined' ? window.innerWidth * MAX_LOG_DETAILS_WIDTH_RATIO : 1040
20
21/**
22 * Clamps a width value to the valid panel range for the current viewport.

Callers 1

clampPanelWidthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected