diff --git a/src/components/navigation/left/ServerListSidebar.tsx b/src/components/navigation/left/ServerListSidebar.tsx index 4483100a..41afbb77 100644 --- a/src/components/navigation/left/ServerListSidebar.tsx +++ b/src/components/navigation/left/ServerListSidebar.tsx @@ -33,10 +33,12 @@ import { Children } from "../../../types/Preact"; function Icon({ children, unread, + count, size, }: { children: Children; unread?: "mention" | "unread"; + count: number | 0; size: number; }) { return ( @@ -54,7 +56,10 @@ function Icon({ )} {unread === "mention" && ( - + <> + + {count<10?count:"9+"} + )} ); @@ -263,7 +268,7 @@ export const ServerListSidebar = observer(({ unreads, lastOpened }: Props) => { homeActive && history.push("/settings") }> - + { - +