Skip to content

Commit

Permalink
cherry-pick(#31975): chore: remove bright counter from sidebar tab se… (
Browse files Browse the repository at this point in the history
#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">
  • Loading branch information
yury-s authored Aug 2, 2024
1 parent 4c66f8a commit 4953ac3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/web/src/components/tabbedPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 4953ac3

Please sign in to comment.