AnayShukla commited on
Commit
3ed93f4
Β·
1 Parent(s): 45ae5c9
frontend/src/components/PitchView.jsx CHANGED
@@ -13,14 +13,14 @@ import { DraggablePlayer } from "./DraggablePlayer";
13
  Label strip: ~52px
14
  Card slot total β‰ˆ 158px per row
15
 
16
- DESIGN_WIDTH = 620: fits widest row (5 mids/defs) = 5Γ—88 + 4Γ—24 = 536 ≀ 620 βœ“
17
  4 starter rows + gaps β‰ˆ 780px total height
18
  Bench β‰ˆ 230px
19
 
20
  MAX_SCALE > 1 lets the pitch scale modestly on wide screens without badges
21
  and labels becoming disproportionately large.
22
  */
23
- const DESIGN_WIDTH = 640;
24
  const STARTERS_H = 780;
25
  const BENCH_H = 230;
26
  // Gap between player card wrappers in px (in design space)
 
13
  Label strip: ~52px
14
  Card slot total β‰ˆ 158px per row
15
 
16
+ DESIGN_WIDTH = 670: fits widest row (5 mids/defs) = 5Γ—88 + 4Γ—24 = 536 ≀ 670 βœ“
17
  4 starter rows + gaps β‰ˆ 780px total height
18
  Bench β‰ˆ 230px
19
 
20
  MAX_SCALE > 1 lets the pitch scale modestly on wide screens without badges
21
  and labels becoming disproportionately large.
22
  */
23
+ const DESIGN_WIDTH = 670;
24
  const STARTERS_H = 780;
25
  const BENCH_H = 230;
26
  // Gap between player card wrappers in px (in design space)