1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00

Fix layout issue caused by live component container

This commit is contained in:
Daniel Barber 2021-07-14 18:23:47 -05:00
parent 1ea842d0ab
commit 3543ccdcae
2 changed files with 5 additions and 2 deletions

View File

@ -8,13 +8,16 @@
width: 1.5%;
}
.board__container {
grid-area: board;
}
.board {
background: $background-color;
border-collapse: unset;
border-radius: 2.8%;
border-spacing: 1px;
color: $foreground-color;
grid-area: board;
height: var(--board-size);
padding: calc(var(--board-size) / 20);
position: relative;

View File

@ -1,5 +1,5 @@
defmodule ChessWeb.BoardLive do
use Phoenix.LiveView
use Phoenix.LiveView, container: {:div, class: "board__container"}
alias Chess.Store.User
alias Chess.Store.Game