mirror of
https://github.com/plebbit/seedit.git
synced 2026-05-18 21:57:54 -04:00
feat(subplebbits): add online indicator
This commit is contained in:
@@ -101,6 +101,22 @@
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.onlineIndicator {
|
||||
background-repeat: no-repeat;
|
||||
display: inline-flex;
|
||||
height: 13px;
|
||||
width: 13px;
|
||||
margin: 2px 5px -2px 2px;
|
||||
}
|
||||
|
||||
.online {
|
||||
background-image: url('/public/assets/indicator-online.png');
|
||||
}
|
||||
|
||||
.offline {
|
||||
background-image: url('/public/assets/indicator-offline.png');
|
||||
}
|
||||
|
||||
.title {
|
||||
display: inline-flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
@@ -92,6 +92,7 @@ const Subplebbit = ({ subplebbit }: SubplebbitProps) => {
|
||||
</div>
|
||||
<div className={styles.entry}>
|
||||
<div className={styles.title}>
|
||||
<span className={`${styles.onlineIndicator} ${isOnline ? styles.online : styles.offline}`} />
|
||||
<Link to={`/p/${address}`}>
|
||||
p/{address.includes('.') ? address : shortAddress}
|
||||
{title && `: ${title}`}
|
||||
|
||||
Reference in New Issue
Block a user