pengx17 committed 2024-07-31 07:03:28 +00:00
1 parent e1e1b29afb
commit 812fdd27b5
2 files changed
+3 -3

No files matched your search

@@ -125,8 +125,8 @@ const WorkbenchTab = ({
</Fragment>
);
})}
{!workbench.pinned && tabsLength > 1 ? (
<div className={styles.tabCloseButtonWrapper}>
{!workbench.pinned && tabsLength > 1 ? (
<button
data-testid="close-tab-button"
className={styles.tabCloseButton}
@@ -134,9 +134,9 @@ const WorkbenchTab = ({
>
<CloseIcon />
</button>
</div>
) : null}
</div>
</div>
);
};
@@ -148,7 +148,7 @@ export const tabCloseButtonWrapper = style({
paddingRight: 4,
justifyContent: 'flex-end',
selectors: {
[`${tab}:is([data-active=true], :hover) &`]: {
[`${tab}:is([data-active=true], :hover) &:not(:empty)`]: {
width: 40,
},
[`${tab}[data-active=true] &`]: {