diff --git a/front/assets/basketball_court.svg b/front/assets/basketball_court.svg index 25b6f6c..e0df003 100644 --- a/front/assets/basketball_court.svg +++ b/front/assets/basketball_court.svg @@ -1,44 +1,62 @@ - - - - - - - - + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/front/components/editor/BasketCourt.tsx b/front/components/editor/BasketCourt.tsx index d4b83d7..0819633 100644 --- a/front/components/editor/BasketCourt.tsx +++ b/front/components/editor/BasketCourt.tsx @@ -18,9 +18,7 @@ export function BasketCourt({players, onPlayerRemove}: { players: Player[], onPl x={(bounds.width * player.right_percentage)} y={(bounds.height * player.bottom_percentage)} bounds={{bottom: bounds.height, top: 0, left: 0, right: bounds.width}} - onRemove={() => { - onPlayerRemove(player) - }} + onRemove={() => onPlayerRemove(player)} /> ) })) diff --git a/front/style/basket_court.css b/front/style/basket_court.css index 2e60cfd..920512b 100644 --- a/front/style/basket_court.css +++ b/front/style/basket_court.css @@ -2,13 +2,18 @@ #court-container { display: flex; + + background-color: var(--main-color); } #court-svg { + margin: 5%; user-select: none; -webkit-user-drag: none; } + + #court-svg * { stroke: var(--selected-team-secondarycolor); } \ No newline at end of file diff --git a/front/style/editor.css b/front/style/editor.css index 4791022..e2d38c9 100644 --- a/front/style/editor.css +++ b/front/style/editor.css @@ -46,5 +46,9 @@ display: flex; align-items: center; justify-content: center; + align-content: center; } +#court-div-bounds { + width: 60%; +} diff --git a/front/views/Editor.tsx b/front/views/Editor.tsx index d7dccaa..8636cad 100644 --- a/front/views/Editor.tsx +++ b/front/views/Editor.tsx @@ -96,7 +96,7 @@ export default function Editor({id, name}: { id: number, name: string }) { onElementDetached={onElementDetach}/>
-
+
{