From 5a80ddfaf91f72c4660f449fc3b75ca7cc10c2a9 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Thu, 1 Aug 2024 16:18:10 -0700 Subject: [PATCH] chore: remove bright counter from sidebar tab selector (#31975) Removing the following icon: ![image](https://github.com/user-attachments/assets/d2de2ed0-f66e-4452-8763-aad1b6e7bb79) HTML `options` element cannot be styled, so just removing the counter in sidebar mode: image --- packages/web/src/components/tabbedPane.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/web/src/components/tabbedPane.tsx b/packages/web/src/components/tabbedPane.tsx index b72ae200fa..2f5208a673 100644 --- a/packages/web/src/components/tabbedPane.tsx +++ b/packages/web/src/components/tabbedPane.tsx @@ -63,14 +63,10 @@ export const TabbedPane: React.FunctionComponent<{ }}> {tabs.map(tab => { let suffix = ''; - if (tab.count === 1) - suffix = ' 🔵'; - else if (tab.count) - suffix = ` 🔵✖️${tab.count}`; - if (tab.errorCount === 1) - suffix = ` 🔴`; - else if (tab.errorCount) - suffix = ` 🔴✖️${tab.errorCount}`; + if (tab.count) + suffix = ` (${tab.count})`; + if (tab.errorCount) + suffix = ` (${tab.errorCount})`; return ; })}