From 9c07506b000c0177273fbf6e87b6f59bf41d11d7 Mon Sep 17 00:00:00 2001 From: "vivien.dufour" Date: Mon, 11 Dec 2023 16:20:29 +0100 Subject: [PATCH] fix css, topbar (ball) do not move anymore on drag of a player --- front/style/editor.css | 19 ++++++++++++++++++- front/views/Editor.tsx | 1 + 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/front/style/editor.css b/front/style/editor.css index 8f0adf4..02b7658 100644 --- a/front/style/editor.css +++ b/front/style/editor.css @@ -43,8 +43,25 @@ height: 100%; } -#allies-rack .player-piece, +#allies-rack { + width: 125px; + min-width: 125px; +} + +#opponent-rack { + width: 125px; + min-width: 125px; + display: flex; + flex-direction: row; + align-items: flex-end; + justify-content: flex-end; +} + #opponent-rack .player-piece { + margin-right: 5px; +} + +#allies-rack .player-piece { margin-left: 5px; } diff --git a/front/views/Editor.tsx b/front/views/Editor.tsx index 53107bf..bb96339 100644 --- a/front/views/Editor.tsx +++ b/front/views/Editor.tsx @@ -26,6 +26,7 @@ import SavingState, { SaveState, SaveStates, } from "../components/editor/SavingState" +import * as Console from "console"; const ERROR_STYLE: CSSProperties = { borderColor: "red",