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

Function getGalleryMaxColumns

public/js/fileListView.js:3075–3081  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3073}
3074
3075function getGalleryMaxColumns() {
3076 const w = window.innerWidth;
3077 if (w < 600) return 1;
3078 if (w < 1024) return 3;
3079 if (w < 1440) return 4;
3080 return 6;
3081}
3082
3083function clampGalleryColumns(v) {
3084 const max = getGalleryMaxColumns();

Callers 4

fileListView.jsFile · 0.85
clampGalleryColumnsFunction · 0.85
buildGalleryControlsFunction · 0.85
renderGalleryViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected