@@ -237,7 +237,7 @@ const WorkbenchTab = ({
|
|||||||
<Loading />
|
<Loading />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{workbench.pinned || !view.title ? null : (
|
{!view.title ? null : (
|
||||||
<div
|
<div
|
||||||
title={view.title}
|
title={view.title}
|
||||||
className={styles.splitViewLabelText}
|
className={styles.splitViewLabelText}
|
||||||
@@ -254,9 +254,8 @@ const WorkbenchTab = ({
|
|||||||
</Fragment>
|
</Fragment>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
{!workbench.pinned ? (
|
|
||||||
<div className={styles.tabCloseButtonWrapper}>
|
<div className={styles.tabCloseButtonWrapper}>
|
||||||
{tabsLength > 1 ? (
|
{tabsLength > 1 && !workbench.pinned ? (
|
||||||
<button
|
<button
|
||||||
data-testid="close-tab-button"
|
data-testid="close-tab-button"
|
||||||
className={styles.tabCloseButton}
|
className={styles.tabCloseButton}
|
||||||
@@ -266,7 +265,6 @@ const WorkbenchTab = ({
|
|||||||
</button>
|
</button>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.dropIndicator} data-edge={closestEdge} />
|
<div className={styles.dropIndicator} data-edge={closestEdge} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ export const tab = style({
|
|||||||
boxShadow: cssVar('buttonShadow'),
|
boxShadow: cssVar('buttonShadow'),
|
||||||
},
|
},
|
||||||
'&[data-pinned="true"]': {
|
'&[data-pinned="true"]': {
|
||||||
flexShrink: 0,
|
maxWidth: 64,
|
||||||
},
|
},
|
||||||
[`${tabWrapper}[data-dragging="true"] &`]: {
|
[`${tabWrapper}[data-dragging="true"] &`]: {
|
||||||
boxShadow: `0 0 0 1px ${cssVar('primaryColor')}`,
|
boxShadow: `0 0 0 1px ${cssVar('primaryColor')}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user