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.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
style: adjust active slider bar collection item active style (#3458)
JimmFly6388a798c9d9
diff --git a/apps/core/src/components/pure/workspace-slider-bar/collections/page.tsx b/apps/core/src/components/pure/workspace-slider-bar/collections/page.tsxindex bbce0b15e7..6dd42d1f9d 100644--- a/apps/core/src/components/pure/workspace-slider-bar/collections/page.tsx+++ b/apps/core/src/components/pure/workspace-slider-bar/collections/page.tsx@@ -150,6 +150,7 @@ export const Page = ({<Collapsible.Root open={!collapsed}><MenuItemdata-testid="collection-page"+ data-type="collection-list-item"icon={icon}onClick={clickPage}className={styles.title}diff --git a/packages/component/src/components/app-sidebar/menu-item/index.css.ts b/packages/component/src/components/app-sidebar/menu-item/index.css.tsindex 66b6216355..ef93f4171d 100644--- a/packages/component/src/components/app-sidebar/menu-item/index.css.ts+++ b/packages/component/src/components/app-sidebar/menu-item/index.css.ts@@ -1,5 +1,4 @@import { style } from '@vanilla-extract/css';-export const root = style({display: 'inline-flex',alignItems: 'center',@@ -35,18 +34,13 @@ export const root = style({paddingLeft: '4px',paddingRight: '12px',},- '&[data-type="collection-list-item"][data-collapsible="false"]:hover': {- width: 'calc(100% + 8px)',- transform: 'translateX(-8px)',- paddingLeft: '20px',- paddingRight: '12px',- },- '&[data-type="favorite-list-item"][data-collapsible="false"]:hover': {- width: 'calc(100% + 8px)',- transform: 'translateX(-8px)',- paddingLeft: '20px',- paddingRight: '12px',- },+ '&[data-type="collection-list-item"][data-collapsible="false"][data-active="true"],&[data-type="favorite-list-item"][data-collapsible="false"][data-active="true"], &[data-type="favorite-list-item"][data-collapsible="false"]:hover, &[data-type="collection-list-item"][data-collapsible="false"]:hover':+ {+ width: 'calc(100% + 8px)',+ transform: 'translateX(-8px)',+ paddingLeft: '20px',+ paddingRight: '12px',+ },},});