diff --git a/webapp/src/components/Checkers.css b/webapp/src/components/Checkers.css
index 069b28e..5c6cf83 100644
--- a/webapp/src/components/Checkers.css
+++ b/webapp/src/components/Checkers.css
@@ -2,32 +2,16 @@
cursor: default; /* disable 'I beam' cursor change */
}
-.Player {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: center;
-}
-
.Board {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
- /* scale: 15%; */
}
.Tile {
border: 1px solid #e4e4e4;
float: left;
- font-size: 200%;
- font-weight: bold;
- line-height: 34px;
- height: 34px;
- width: 34px;
- margin-right: -1px;
- margin-top: -1px;
- padding: 0;
text-align: center;
}
@@ -35,10 +19,6 @@
background: lightgray;
}
-.Tile.white:hover {
- background-color:azure;
-}
-
-.Tile .Stone {
- font-size: 120%;
-}
\ No newline at end of file
+.Tile.white {
+ background: white;
+}
\ No newline at end of file
diff --git a/webapp/src/components/Checkers.jsx b/webapp/src/components/Checkers.jsx
index b940335..be54ea1 100644
--- a/webapp/src/components/Checkers.jsx
+++ b/webapp/src/components/Checkers.jsx
@@ -56,8 +56,8 @@ export function BlackStone({ type }) {
export function Player({ color, name }) {
return (
-
{name}
+
)
}
diff --git a/webapp/src/container/games/GameBoard.css b/webapp/src/container/games/GameBoard.css
index 9bc2ca5..bd5e884 100644
--- a/webapp/src/container/games/GameBoard.css
+++ b/webapp/src/container/games/GameBoard.css
@@ -1,3 +1,24 @@
-.GameBoard .Board {
- padding: 5px;
+.GameBoard .Player {
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ justify-content: center;
+}
+
+.GameBoard .Tile {
+ font-size: 200%;
+ line-height: 34px;
+ height: 34px;
+ width: 34px;
+ margin-right: -1px;
+ margin-top: -1px;
+}
+
+.GameBoard .Tile.white:hover {
+ background-color:azure;
+}
+
+.Message2Opponent {
+ margin: 10px;
+ width: 270px;
}
\ No newline at end of file
diff --git a/webapp/src/container/games/view/GameSelector.css b/webapp/src/container/games/view/GameSelector.css
index fc8d7eb..0c26dad 100644
--- a/webapp/src/container/games/view/GameSelector.css
+++ b/webapp/src/container/games/view/GameSelector.css
@@ -3,61 +3,56 @@
overflow-y: scroll;
}
-hr {
- border: 0;
- height: 0;
- border-top: 1px solid rgba(0, 0, 0, 0.1);
- border-bottom: 1px solid rgba(255, 255, 255, 0.3);
-
- margin-bottom: 2px;
- margin-top: 3px;
-}
-
-.Selectable .Title {
+.Selectable {
display: flex;
flex-direction: row;
- align-items: center;
- justify-content: center;
+ min-width: 250px;
+}
+.Selectable:hover {
+ background-color: #d3d3d360;
+ border-radius: 2px;
+}
+.Selectable.selected {
+ background-color: #d3d3d3f0;
+ border-radius: 2px;
}
.Selectable q {
color: gray;
font-size: 70%;
- max-width: 250px;
+ width: 205px;
display: block;
white-space: nowrap;
- overflow: scroll;
- padding-bottom: 2px;
+ overflow: hidden;
+ text-overflow: ellipsis;
}
-.Selectable i {
- font-size: 70%;
- margin-left: 5px;
- margin-right: 5px;
+.Selectable .Board {
+ margin: 5px;
+}
+.Selectable .Board .Tile {
+ font-size: 33.3%;
+ line-height: 4px;
+ height: 4px;
+ width: 4px;
+ margin-right: -1px;
+ margin-top: -1px;
}
-.Selectable:hover {
- background-color: #d3d3d360;
- border-radius: 2px;
+.Selectable .Message {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
}
-.Selectable.selected {
- background-color: #d3d3d3f0;
- border-radius: 2px;
-}
-
-
.Separator {
- /* width: 20%; */
- /* height: 20px; */
border-bottom: 1px dotted black;
text-align: center;
font-size: 50%;
padding-left: 50%;
- margin-bottom: 7px;
+ margin-bottom: 2px;
}
-
.Separator .Counter {
background-color: darkgray;
}
\ No newline at end of file
diff --git a/webapp/src/container/games/view/GameSelector.jsx b/webapp/src/container/games/view/GameSelector.jsx
index ad9a429..cc23657 100644
--- a/webapp/src/container/games/view/GameSelector.jsx
+++ b/webapp/src/container/games/view/GameSelector.jsx
@@ -2,7 +2,7 @@ import './GameSelector.css';
import React, { useContext } from 'react';
import { GamesContext } from '../../../context/games';
-import { Color, Player } from '../../../components/Checkers';
+import { Board, Color, Player } from '../../../components/Checkers';
import Loading from '../../../components/Loading';
import Counter from '../../../components/Counter';
@@ -115,17 +115,14 @@ function Selectable({ game, selected, onClick }) {
const opponentName = game.opponentName;
return (
-
-
onClick(game.uuid)}>
-
+
onClick(game.uuid)}
+ >
+
+
-
)
};