Skip to content

Commit

Permalink
fix(electron): adjust app-tabs-header styles (#7849)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Aug 13, 2024
1 parent d86f7f4 commit d4065fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ const WorkbenchTab = ({
data-testid="workbench-tab"
data-active={tabActive}
data-pinned={workbench.pinned}
data-padding-right={tabsLength > 1 && !workbench.pinned}
className={styles.tab}
>
{workbench.views.map((view, viewIdx) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const tabWrapper = style({
export const tab = style({
height: 32,
minWidth: 32,
maxWidth: 200,
overflow: 'clip',
background: cssVar('backgroundSecondaryColor'),
display: 'flex',
Expand All @@ -93,7 +94,7 @@ export const tab = style({
background: cssVar('backgroundPrimaryColor'),
boxShadow: cssVar('shadow1'),
},
'&[data-pinned="false"]': {
'&[data-padding-right="true"]': {
paddingRight: 20,
},
'&[data-pinned="true"]': {
Expand All @@ -113,7 +114,6 @@ export const splitViewLabel = style({
gap: '4px',
fontWeight: 500,
alignItems: 'center',
maxWidth: 180,
cursor: 'default',
':last-of-type': {
paddingRight: 0,
Expand Down Expand Up @@ -172,7 +172,7 @@ export const tabCloseButtonWrapper = style({
top: 0,
bottom: 0,
height: '100%',
width: 16,
width: 24,
overflow: 'clip',
display: 'flex',
alignItems: 'center',
Expand Down

0 comments on commit d4065fe

Please sign in to comment.