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(component): clear page list operation's link style (#5148)

Cats Juice1cd8de9d60f1
diff --git a/packages/frontend/component/src/components/page-list/operation-cell.tsx b/packages/frontend/component/src/components/page-list/operation-cell.tsx
index 9dd04a262f..a8d8d8d08d 100644
--- a/packages/frontend/component/src/components/page-list/operation-cell.tsx
+++ b/packages/frontend/component/src/components/page-list/operation-cell.tsx
@@ -66,6 +66,7 @@ export const OperationCell = ({
</MenuItem>
{!environment.isDesktop && (
<Link
+ className={styles.clearLinkStyle}
onClick={stopPropagationWithoutPrevent}
to={link}
target={'_blank'}
diff --git a/packages/frontend/component/src/components/page-list/page-list.css.ts b/packages/frontend/component/src/components/page-list/page-list.css.ts
index 64a855b9ed..2be091713f 100644
--- a/packages/frontend/component/src/components/page-list/page-list.css.ts
+++ b/packages/frontend/component/src/components/page-list/page-list.css.ts
@@ -120,3 +120,14 @@ export const favoriteCell = style({
},
},
});
+
+export const clearLinkStyle = style({
+ color: 'inherit',
+ textDecoration: 'none',
+ ':visited': {
+ color: 'inherit',
+ },
+ ':active': {
+ color: 'inherit',
+ },
+});