From 8124119e739e7b9d8e537d86d7df44b276dd9dc2 Mon Sep 17 00:00:00 2001
From: Ryan Alexander <38785445+ryanalexander@users.noreply.github.com>
Date: Mon, 16 Aug 2021 05:17:21 +1000
Subject: [PATCH 1/2] Update ServerListSidebar.tsx
---
src/components/navigation/left/ServerListSidebar.tsx | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
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")
}>
-
+
{
-
+
Date: Mon, 16 Aug 2021 05:24:37 +1000
Subject: [PATCH 2/2] Update ServerListSidebar.tsx
---
src/components/navigation/left/ServerListSidebar.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/components/navigation/left/ServerListSidebar.tsx b/src/components/navigation/left/ServerListSidebar.tsx
index 41afbb77..13933e7f 100644
--- a/src/components/navigation/left/ServerListSidebar.tsx
+++ b/src/components/navigation/left/ServerListSidebar.tsx
@@ -58,7 +58,7 @@ function Icon({
{unread === "mention" && (
<>
- {count<10?count:"9+"}
+ {count < 9 ? count : "9+"}
>
)}
@@ -268,7 +268,7 @@ export const ServerListSidebar = observer(({ unreads, lastOpened }: Props) => {
homeActive && history.push("/settings")
}>
-
+