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: divider styles issue (#6058)

Peng Xiaoc93077f6435c
diff --git a/packages/frontend/core/src/components/affine/page-properties/styles.css.ts b/packages/frontend/core/src/components/affine/page-properties/styles.css.ts
index 1d3be9aff8..2fe8b1a879 100644
--- a/packages/frontend/core/src/components/affine/page-properties/styles.css.ts
+++ b/packages/frontend/core/src/components/affine/page-properties/styles.css.ts
@@ -97,10 +97,10 @@ export const tableHeaderTimestamp = style({
});
export const tableHeaderDivider = style({
- height: '0.5px',
+ height: 0,
+ borderTop: `1px solid ${cssVar('borderColor')}`,
width: '100%',
margin: '8px 0',
- backgroundColor: cssVar('borderColor'),
});
export const tableBodyRoot = style({
diff --git a/packages/frontend/core/src/components/affine/setting-modal/workspace-setting/properties/styles.css.ts b/packages/frontend/core/src/components/affine/setting-modal/workspace-setting/properties/styles.css.ts
index ddeb7ba359..ba066f97ef 100644
--- a/packages/frontend/core/src/components/affine/setting-modal/workspace-setting/properties/styles.css.ts
+++ b/packages/frontend/core/src/components/affine/setting-modal/workspace-setting/properties/styles.css.ts
@@ -65,8 +65,8 @@ export const propertyDocCount = style({
export const divider = style({
width: '100%',
- height: 1,
- backgroundColor: cssVar('dividerColor'),
+ height: 0,
+ borderTop: `1px solid ${cssVar('borderColor')}`,
});
export const spacer = style({