Spaces:
Running
Running
Commit Β·
3ed93f4
1
Parent(s): 45ae5c9
updates
Browse files
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 =
|
| 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 =
|
| 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)
|