From 1e51512ee88b40e88b968026d7d630bc88ce2022 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Wed, 23 Feb 2022 22:42:24 -0800 Subject: [PATCH] In-play tweaks Signed-off-by: James Ketrenos --- client/src/Board.css | 8 ++++++++ client/src/Table.css | 17 +++++++++-------- client/src/Table.js | 8 ++++---- client/src/Trade.js | 29 ++++++++++++++++------------- 4 files changed, 37 insertions(+), 25 deletions(-) diff --git a/client/src/Board.css b/client/src/Board.css index 80a4dc6..a179c32 100644 --- a/client/src/Board.css +++ b/client/src/Board.css @@ -155,10 +155,18 @@ } .Roberta .Pip-Shape { + top: -2em; + left: -2em; + clip-path: circle(50%); + transform: scale(0.45); background-image:url("./assets/woman-robber.png"); } .Robert .Pip-Shape { + top: -2em; + left: -2em; + clip-path: circle(50%); + transform: scale(0.45); background-image:url("./assets/man-robber.png"); } diff --git a/client/src/Table.css b/client/src/Table.css index ca753f0..c1502a4 100755 --- a/client/src/Table.css +++ b/client/src/Table.css @@ -10,7 +10,7 @@ .BottomBar { display: flex; - margin-right: 40vw; + margin-right: 30vw; justify-content: space-between; align-items: flex-end; } @@ -18,13 +18,14 @@ .WaitingForPlayer { display: flex; position: absolute; - left: 0; - right: 0;/*40vw;*/ - bottom: 0; - top: 0; + left: 0.5em; +/* right: 30vw;*/ +/* bottom: 0;*/ + opacity: 0.8; + top: 0.5em; justify-content: center; align-items: center; - background: rgba(0,0,0,0.5); + /*background: rgba(0,0,0,0.5);*/ z-index: 0;/*1000*/ } @@ -208,7 +209,7 @@ box-sizing: border-box; max-height: 100vh; overflow: hidden; - max-width: 40vw; + max-width: 30vw; z-index: 100; padding: 0.5em; right: 0px; @@ -315,7 +316,7 @@ .PlayerSelector .MuiTypography-body1 { font-size: 0.8rem; - white-space: nowrap; +/* white-space: nowrap;*/ } .PlayerSelector .MuiTypography-body2 { diff --git a/client/src/Table.js b/client/src/Table.js index 0e610d6..ef31353 100755 --- a/client/src/Table.js +++ b/client/src/Table.js @@ -219,7 +219,7 @@ const Chat = ({ table }) => { } const name = table.game ? table.game.name : "Why no game?"; - + const startTime = table.game ? table.game.startTime : Date.now(); return ( @@ -229,7 +229,7 @@ const Chat = ({ table }) => { disabled={!name} onChange={chatInput} onKeyPress={chatKeyPress} - label={()} variant="outlined"/> + label={({Date.now()-startTime})} variant="outlined"/> ); } @@ -411,9 +411,9 @@ const Action = ({ table }) => { } } - { !inLobby && + { /* inLobby && - } + */ } ); } diff --git a/client/src/Trade.js b/client/src/Trade.js index 5160555..c6999b3 100644 --- a/client/src/Trade.js +++ b/client/src/Trade.js @@ -33,21 +33,24 @@ const ResourceCounter = ({type, count, onCount, max}) => { display: 'flex', justifyContent: 'space-around', width: '100%', - alignItems: 'center' + alignItems: 'center', + flexDirection: 'column' }}> -
{count}
- +
+ + +
);