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

Function applyRowHeight

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

Source from the content-addressed store, hash-verified

3057}
3058
3059function applyRowHeight(v) {
3060 const h = clampRowHeight(v);
3061 document.documentElement.style.setProperty('--file-row-height', `${h}px`);
3062 localStorage.setItem('rowHeight', h);
3063
3064 // compact marker for tiny rows
3065 if (h <= 32) {
3066 document.documentElement.setAttribute('data-row-compact', '1');
3067 } else {
3068 document.documentElement.removeAttribute('data-row-compact');
3069 }
3070
3071 try { syncFolderIconSizeToRowHeight(); } catch (e) {}
3072 return h;
3073}
3074
3075function getGalleryMaxColumns() {
3076 const w = window.innerWidth;

Callers 2

fileListView.jsFile · 0.85
buildRowHeightControlsFunction · 0.85

Calls 2

clampRowHeightFunction · 0.85

Tested by

no test coverage detected