Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: icon color active style (#7656)

pengx17ea7066d02cf6
diff --git a/packages/frontend/core/src/modules/app-tabs-header/views/styles.css.ts b/packages/frontend/core/src/modules/app-tabs-header/views/styles.css.ts
index 71e7ee7e56..3b0384454d 100644
--- a/packages/frontend/core/src/modules/app-tabs-header/views/styles.css.ts
+++ b/packages/frontend/core/src/modules/app-tabs-header/views/styles.css.ts
@@ -66,7 +66,7 @@ export const tab = style({
boxShadow: cssVar('shadow1'),
},
'&[data-pinned="false"]': {
- paddingRight: 20,
+ paddingRight: 8,
},
'&[data-pinned="true"]': {
flexShrink: 0,
@@ -84,6 +84,9 @@ export const splitViewLabel = style({
alignItems: 'center',
maxWidth: 180,
cursor: 'default',
+ ':last-of-type': {
+ paddingRight: 0,
+ },
});
export const splitViewLabelText = style({
@@ -121,7 +124,7 @@ export const labelIcon = style([
fontSize: 16,
flexShrink: 0,
selectors: {
- [`${tab}[data-active=true] &`]: {
+ [`${splitViewLabel}[data-active=true] &`]: {
color: cssVar('primaryColor'),
},
[`${splitViewLabel}[data-active=false]:hover &`]: {