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
chore: clean styles
lawvs374d9d94efb4
diff --git a/libs/components/editor-blocks/src/blocks/group/GroupView.tsx b/libs/components/editor-blocks/src/blocks/group/GroupView.tsxindex 791059e36c..f0d6e56cc5 100644--- a/libs/components/editor-blocks/src/blocks/group/GroupView.tsx+++ b/libs/components/editor-blocks/src/blocks/group/GroupView.tsx@@ -21,19 +21,6 @@ const SceneMap: Record<RecastScene, ComponentType<CreateView>> = {kanban: SceneKanban,} as const;-const GroupBox = styled('div')(({ theme }) => {- return {- '&:hover': {- // Workaround referring to other components- // See https://emotion.sh/docs/styled#targeting-another-emotion-component- // [GroupActionWrapper.toString()]: {},- '& > *': {- visibility: 'visible',- },- },- };-});-const GroupActionWrapper = styled('div')(({ theme }) => ({height: '30px',display: 'flex',@@ -59,6 +46,14 @@ const GroupActionWrapper = styled('div')(({ theme }) => ({},}));+const GroupBox = styled('div')({+ '&:hover': {+ [GroupActionWrapper.toString()]: {+ visibility: 'visible',+ },+ },+});+const GroupContainer = styled('div')<{ isSelect?: boolean }>(({ isSelect, theme }) => ({background: theme.affine.palette.white,diff --git a/libs/components/editor-blocks/src/blocks/group/group-menu/AddViewMenu.tsx b/libs/components/editor-blocks/src/blocks/group/group-menu/AddViewMenu.tsxindex a376785b52..cffa0a0dd0 100644--- a/libs/components/editor-blocks/src/blocks/group/group-menu/AddViewMenu.tsx+++ b/libs/components/editor-blocks/src/blocks/group/group-menu/AddViewMenu.tsx@@ -41,7 +41,7 @@ export const AddViewMenu = () => {onClick={() => setActivePanel(!activePanel)}><AddViewIcon fontSize="small" />- <span>Add View</span>+ <span style={{ userSelect: 'none' }}>Add View</span>{activePanel && (<Panel><PanelItem>diff --git a/libs/components/editor-blocks/src/blocks/group/group-menu/ViewsMenu.tsx b/libs/components/editor-blocks/src/blocks/group/group-menu/ViewsMenu.tsxindex 1fee99465e..9e6a70df24 100644--- a/libs/components/editor-blocks/src/blocks/group/group-menu/ViewsMenu.tsx+++ b/libs/components/editor-blocks/src/blocks/group/group-menu/ViewsMenu.tsx@@ -20,7 +20,7 @@ export const ViewsMenu = () => {useRecastView();const handleChange = (e: ChangeEvent<HTMLInputElement>) => {- setViewName(e.target.value.trim());+ setViewName(e.target.value);};const handleKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {@@ -36,7 +36,7 @@ export const ViewsMenu = () => {}await updateView({...activeView,- name: viewName,+ name: viewName.trim(),type: viewType,});setActiveView(null);