camWallTileSize.ts 613 B

12345678910111213
  1. // Cam Wall tile sizes (#2735): 1=S, 2=M, 3=L, 4=XL, the same scale as the
  2. // printer cards. The size sets how many tiles share a row; tiles stay 16:9.
  3. export const CAM_WALL_TILE_SIZES = ['s', 'm', 'l', 'xl'] as const;
  4. export const DEFAULT_CAM_WALL_TILE_SIZE = 2;
  5. export function camWallGridClasses(tileSize: number): string {
  6. switch (tileSize) {
  7. case 1: return 'grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5';
  8. case 3: return 'grid-cols-1 lg:grid-cols-2';
  9. case 4: return 'grid-cols-1';
  10. default: return 'grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4';
  11. }
  12. }