mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(home): unify stats loading state with feed status string
Show a single centered loader without stat labels until all directory stats resolve, using useFeedStateString like popular threads. Center directory table status loading in its cell.
This commit is contained in:
@@ -145,8 +145,16 @@
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.ownerCell {
|
||||
.ownerCell,
|
||||
.statusCell {
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.statusLoading {
|
||||
display: block;
|
||||
width: fit-content;
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.ownerName {
|
||||
|
||||
@@ -135,7 +135,9 @@ const DirectoryRow = ({ board, nowSeconds, rank, onVote }: DirectoryRowProps) =>
|
||||
</Tooltip>
|
||||
</span>
|
||||
) : status === 'loading' ? (
|
||||
<LoadingEllipsis string={t('loading')} />
|
||||
<span className={styles.statusLoading}>
|
||||
<LoadingEllipsis string={t('loading')} />
|
||||
</span>
|
||||
) : status === 'unknown' ? (
|
||||
<span className={styles.statusUnavailable}>{DIRECTORY_STATUS_UNAVAILABLE_MARKER}</span>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user