mirror of
https://github.com/revoltchat/revite.git
synced 2025-02-22 08:11:03 -05:00
Update ServerListSidebar.tsx
This commit is contained in:
parent
8124119e73
commit
44521716c6
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ function Icon({
|
||||||
{unread === "mention" && (
|
{unread === "mention" && (
|
||||||
<>
|
<>
|
||||||
<circle cx="27" cy="5" r="5" fill={"var(--error)"} />
|
<circle cx="27" cy="5" r="5" fill={"var(--error)"} />
|
||||||
<text x="27" y="5" r="5" fill={"white"} text-anchor="middle" fontSize={"7.5"} alignmentBaseline={"middle"}>{count<10?count:"9+"}</text>
|
<text x="27" y="5" r="5" fill={"white"} fontSize={"7.5"} alignmentBaseline={"middle"}>{count < 9 ? count : "9+"}</text>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</svg>
|
</svg>
|
||||||
|
@ -268,7 +268,7 @@ export const ServerListSidebar = observer(({ unreads, lastOpened }: Props) => {
|
||||||
homeActive && history.push("/settings")
|
homeActive && history.push("/settings")
|
||||||
}>
|
}>
|
||||||
<UserHover user={client.user}>
|
<UserHover user={client.user}>
|
||||||
<Icon size={42} unread={homeUnread} count={0}>
|
<Icon size={42} unread={homeUnread} count={alertCount}>
|
||||||
<UserIcon
|
<UserIcon
|
||||||
target={client.user}
|
target={client.user}
|
||||||
size={32}
|
size={32}
|
||||||
|
|
Loading…
Add table
Reference in a new issue