Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 | 1x 1x 1x 4x 3x | export const sidebarMinWidth = 320;
export const sidebarMaxWidth = 720;
export const sidebarDefaultWidth = 420;
export function clampSidebarWidth(value: number): number {
if (!Number.isFinite(value)) return sidebarDefaultWidth;
return Math.min(sidebarMaxWidth, Math.max(sidebarMinWidth, Math.round(value)));
}
|