mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
update offline indicator
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 859 B |
Binary file not shown.
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 859 B |
@@ -16,7 +16,7 @@ const BoardAvatar = ({ address }) => {
|
||||
return (
|
||||
<div className="board-avatar-container">
|
||||
<img
|
||||
className={isOnline ? "board-avatar" : "board-avatar offline"}
|
||||
className="board-avatar"
|
||||
alt="board logo"
|
||||
src={avatarUrl}
|
||||
/>
|
||||
|
||||
@@ -10,7 +10,7 @@ const BoardSubscription = ({ address }) => {
|
||||
return (
|
||||
<>
|
||||
{address}{!isOnline && (
|
||||
<img className="disconnected" alt="offline" src="assets/disconnected.png" />
|
||||
<img className="disconnected" alt="offline" src="assets/offline.png" />
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -246,11 +246,8 @@ export const BoardsContent = styled.div`
|
||||
|
||||
.offline-indicator {
|
||||
position: absolute;
|
||||
top: calc(50% - 10px);
|
||||
left: 0;
|
||||
width: 100%;
|
||||
object-fit: cover;
|
||||
z-index: 1;
|
||||
top: 5px;
|
||||
right: 5px;
|
||||
}
|
||||
|
||||
.board-text {
|
||||
@@ -298,7 +295,7 @@ export const BoardsContent = styled.div`
|
||||
}
|
||||
|
||||
.disconnected {
|
||||
width: 15px;
|
||||
width: 13px;
|
||||
position: absolute;
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -125,9 +125,7 @@ const Home = () => {
|
||||
setSelectedTitle(subplebbit.title);
|
||||
setSelectedAddress(subplebbit.address);
|
||||
}} >
|
||||
<div className="board-avatar-container">
|
||||
<BoardAvatar address={subplebbit.address} />
|
||||
</div>
|
||||
<BoardAvatar address={subplebbit.address} />
|
||||
</Link>
|
||||
<div className="board-text">
|
||||
<b>{subplebbit.address}</b>
|
||||
|
||||
Reference in New Issue
Block a user