Selectable: remove border box
This commit is contained in:
parent
907be9cbc0
commit
9439186b8a
@ -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; */
|
||||
|
@ -32,13 +32,16 @@ function Selectable({ game, onClick }) {
|
||||
const opponentName = game.opponentName;
|
||||
|
||||
return (
|
||||
<div className='Selectable' onClick={() => onClick(game.uuid)}>
|
||||
<div className='Title'>
|
||||
<Player color={myColor} />
|
||||
<i>vs</i>
|
||||
<Player color={opponentColor} name={opponentName} />
|
||||
<div >
|
||||
<div className='Selectable' onClick={() => onClick(game.uuid)}>
|
||||
<div className='Title'>
|
||||
<Player color={myColor} />
|
||||
<i>vs</i>
|
||||
<Player color={opponentColor} name={opponentName} />
|
||||
</div>
|
||||
<q>{game.message}</q>
|
||||
</div>
|
||||
<q>{game.message}</q>
|
||||
<hr />
|
||||
</div>
|
||||
)
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user