MCPcopy Create free account
hub / github.com/error311/FileRise / clampRowHeight

Function clampRowHeight

public/js/fileListView.js:3053–3057  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

3051}
3052
3053function clampRowHeight(v) {
3054 const n = parseInt(v, 10);
3055 if (!Number.isFinite(n)) return 44;
3056 return Math.max(20, Math.min(60, n));
3057}
3058
3059function applyRowHeight(v) {
3060 const h = clampRowHeight(v);

Callers 2

applyRowHeightFunction · 0.85
buildRowHeightControlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected