Selectable: remove border box

This commit is contained in:
djmil 2023-11-14 13:21:26 +01:00
parent 907be9cbc0
commit 9439186b8a
2 changed files with 27 additions and 18 deletions

View File

@ -3,13 +3,25 @@
overflow-y: scroll;
}
.Selectable {
border: 1px solid black;
margin-bottom: 5px;
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 q {
color: gray;
font-size: 70%;
max-width: 250px;
display: block;
white-space: nowrap;
overflow: scroll;
padding-bottom: 2px;
}
.Selectable i {
@ -20,16 +32,10 @@
.Selectable:hover {
background-color: #d3d3d360;
}
border-radius: 2px;
/* .Games .li button.action {
display: none;
}
.Games .li:hover button.action {
display: initial;
} */
.Separator {
/* width: 20%; */
/* height: 20px; */

View File

@ -32,6 +32,7 @@ function Selectable({ game, onClick }) {
const opponentName = game.opponentName;
return (
<div >
<div className='Selectable' onClick={() => onClick(game.uuid)}>
<div className='Title'>
<Player color={myColor} />
@ -40,6 +41,8 @@ function Selectable({ game, onClick }) {
</div>
<q>{game.message}</q>
</div>
<hr />
</div>
)
};