cherry-pick(#31975): chore: remove bright counter from sidebar tab se… (#31976)

…lector

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:

<img width="348" alt="image"

src="https://github.com/user-attachments/assets/d636dca2-5007-41f7-866e-3a0f604d46fc">
This commit is contained in:
Yury Semikhatsky 2024-08-02 10:32:48 -07:00 committed by GitHub
parent 4c66f8aeda
commit 4953ac3072
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,14 +62,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 <option value={tab.id} selected={tab.id === selectedTab}>{tab.title}{suffix}</option>;
})}
</select>