()
| 3073 | } |
| 3074 | |
| 3075 | function 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 | |
| 3083 | function clampGalleryColumns(v) { |
| 3084 | const max = getGalleryMaxColumns(); |
no outgoing calls
no test coverage detected