fix: fallback element for muted user list

This commit is contained in:
Shusui MOYATANI
2024-02-21 12:17:33 +09:00
parent a43bae7262
commit 788bc73ceb

View File

@@ -498,7 +498,9 @@ const MuteConfig = () => {
{(pubkey) => (
<li class="flex items-center border-b border-border pr-4">
<div class="flex-1 truncate">
<LazyLoad>{() => <UserNameDisplay pubkey={pubkey} />}</LazyLoad>
<LazyLoad fallback={<div class="h-4" />}>
{() => <UserNameDisplay pubkey={pubkey} />}
</LazyLoad>
</div>
<button class="size-3 shrink-0" onClick={() => removeMutedPubkey(pubkey)}>
<XMark />