mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix square shape of board avatars
This commit is contained in:
@@ -213,11 +213,18 @@ export const BoardsContent = styled.div`
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
img {
|
||||
.board-avatar-container {
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
border: 1px solid #800;
|
||||
display: inline-block;
|
||||
max-width: 150px;
|
||||
max-height: 150px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.board-avatar-container img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.board-text {
|
||||
|
||||
@@ -108,7 +108,9 @@ const Home = () => {
|
||||
setSelectedTitle(subplebbit.title);
|
||||
setSelectedAddress(subplebbit.address);
|
||||
}} >
|
||||
<BoardAvatar address={subplebbit.address} />
|
||||
<div className="board-avatar-container">
|
||||
<BoardAvatar address={subplebbit.address} />
|
||||
</div>
|
||||
</Link>
|
||||
<div className="board-text">
|
||||
<b>{subplebbit.address}</b>
|
||||
|
||||
Reference in New Issue
Block a user