mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 02:42:25 +08:00
fix(electron): adjust app-tabs-header styles (#7849)
This commit is contained in:
@@ -208,6 +208,7 @@ const WorkbenchTab = ({
|
|||||||
data-testid="workbench-tab"
|
data-testid="workbench-tab"
|
||||||
data-active={tabActive}
|
data-active={tabActive}
|
||||||
data-pinned={workbench.pinned}
|
data-pinned={workbench.pinned}
|
||||||
|
data-padding-right={tabsLength > 1 && !workbench.pinned}
|
||||||
className={styles.tab}
|
className={styles.tab}
|
||||||
>
|
>
|
||||||
{workbench.views.map((view, viewIdx) => {
|
{workbench.views.map((view, viewIdx) => {
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ export const tabWrapper = style({
|
|||||||
export const tab = style({
|
export const tab = style({
|
||||||
height: 32,
|
height: 32,
|
||||||
minWidth: 32,
|
minWidth: 32,
|
||||||
|
maxWidth: 200,
|
||||||
overflow: 'clip',
|
overflow: 'clip',
|
||||||
background: cssVar('backgroundSecondaryColor'),
|
background: cssVar('backgroundSecondaryColor'),
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
@@ -93,7 +94,7 @@ export const tab = style({
|
|||||||
background: cssVar('backgroundPrimaryColor'),
|
background: cssVar('backgroundPrimaryColor'),
|
||||||
boxShadow: cssVar('shadow1'),
|
boxShadow: cssVar('shadow1'),
|
||||||
},
|
},
|
||||||
'&[data-pinned="false"]': {
|
'&[data-padding-right="true"]': {
|
||||||
paddingRight: 20,
|
paddingRight: 20,
|
||||||
},
|
},
|
||||||
'&[data-pinned="true"]': {
|
'&[data-pinned="true"]': {
|
||||||
@@ -113,7 +114,6 @@ export const splitViewLabel = style({
|
|||||||
gap: '4px',
|
gap: '4px',
|
||||||
fontWeight: 500,
|
fontWeight: 500,
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
maxWidth: 180,
|
|
||||||
cursor: 'default',
|
cursor: 'default',
|
||||||
':last-of-type': {
|
':last-of-type': {
|
||||||
paddingRight: 0,
|
paddingRight: 0,
|
||||||
@@ -172,7 +172,7 @@ export const tabCloseButtonWrapper = style({
|
|||||||
top: 0,
|
top: 0,
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
height: '100%',
|
height: '100%',
|
||||||
width: 16,
|
width: 24,
|
||||||
overflow: 'clip',
|
overflow: 'clip',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
|
|||||||
Reference in New Issue
Block a user