mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: remove bright counter from sidebar tab selector (#31975)
Removing the following icon:  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:
parent
a828fd5d73
commit
5a80ddfaf9
@ -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 <option value={tab.id} selected={tab.id === selectedTab}>{tab.title}{suffix}</option>;
|
||||
})}
|
||||
</select>
|
||||
|
Loading…
x
Reference in New Issue
Block a user