(v)
| 3057 | } |
| 3058 | |
| 3059 | function 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 | |
| 3075 | function getGalleryMaxColumns() { |
| 3076 | const w = window.innerWidth; |
no test coverage detected