fix(component): clear page list operation's link style (#5148)

- before
  ![CleanShot 2023-12-01 at 12 03 24@2x](https://github.com/toeverything/AFFiNE/assets/39363750/6951ee61-d3c3-43b3-8949-fe6ed9ceb99e)
- after
  ![CleanShot 2023-12-01 at 12 08 02@2x](https://github.com/toeverything/AFFiNE/assets/39363750/2a85e5f7-9156-4aef-81a2-76d66a673ebd)
This commit is contained in:
Cats Juice
2023-12-05 07:01:42 +00:00
parent 51e42af317
commit 1cd8de9d60
2 changed files with 12 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ export const OperationCell = ({
</MenuItem>
{!environment.isDesktop && (
<Link
className={styles.clearLinkStyle}
onClick={stopPropagationWithoutPrevent}
to={link}
target={'_blank'}

View File

@@ -120,3 +120,14 @@ export const favoriteCell = style({
},
},
});
export const clearLinkStyle = style({
color: 'inherit',
textDecoration: 'none',
':visited': {
color: 'inherit',
},
':active': {
color: 'inherit',
},
});