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
fix: ui issues (#1371)
Qi3fba384ef5c1
diff --git a/apps/web/src/components/blocksuite/header/header-right-items/SyncUser.tsx b/apps/web/src/components/blocksuite/header/header-right-items/SyncUser.tsxindex 9e9db46859..317b957a63 100644--- a/apps/web/src/components/blocksuite/header/header-right-items/SyncUser.tsx+++ b/apps/web/src/components/blocksuite/header/header-right-items/SyncUser.tsx@@ -1,6 +1,6 @@import { displayFlex, IconButton, styled, Tooltip } from '@affine/component';import { useTranslation } from '@affine/i18n';-import { CloudWorkspaceIcon } from '@blocksuite/icons';+import { CloudWorkspaceIcon, LocalWorkspaceIcon } from '@blocksuite/icons';import { assertEquals, assertExists } from '@blocksuite/store';import { useRouter } from 'next/router';import React, { useEffect, useState } from 'react';@@ -14,7 +14,6 @@ import {RemWorkspaceFlavour,} from '../../../../shared';import { TransformWorkspaceToAffineModal } from '../../../affine/transform-workspace-to-affine-modal';-import { LocalWorkspaceIcon } from '../../../pure/icons';const NoNetWorkIcon = () => {return (@@ -33,12 +32,13 @@ const NoNetWorkIcon = () => {</svg>);};-const IconWrapper = styled('div')(() => {+const IconWrapper = styled('div')(({ theme }) => {return {width: '32px',height: '32px',marginRight: '12px',fontSize: '22px',+ color: theme.colors.iconColor,...displayFlex('center', 'center'),};});diff --git a/apps/web/src/components/blocksuite/header/styles.ts b/apps/web/src/components/blocksuite/header/styles.tsindex b462e17b87..fc8718f32b 100644--- a/apps/web/src/components/blocksuite/header/styles.ts+++ b/apps/web/src/components/blocksuite/header/styles.ts@@ -4,7 +4,6 @@ export const StyledHeaderContainer = styled('div')<{ hasWarning: boolean }>(({ hasWarning }) => {return {height: hasWarning ? '96px' : '60px',- padding: '0 28px',};});@@ -13,6 +12,7 @@ export const StyledHeader = styled('div')<{ hasWarning: boolean }>(return {height: '60px',width: '100%',+ padding: '0 28px',...displayFlex('flex-end', 'center'),background: theme.colors.pageBackground,transition: 'background-color 0.5s',@@ -53,11 +53,7 @@ export const StyledBrowserWarning = styled('div')<{ show: boolean }>(backgroundColor: theme.colors.warningBackground,color: theme.colors.warningColor,height: '36px',- width: '100vw',fontSize: theme.font.sm,- position: 'fixed',- left: '0',- top: '0',display: show ? 'flex' : 'none',justifyContent: 'center',alignItems: 'center',diff --git a/apps/web/src/components/blocksuite/header/utils.tsx b/apps/web/src/components/blocksuite/header/utils.tsxindex a27a2f0849..026e16b976 100644--- a/apps/web/src/components/blocksuite/header/utils.tsx+++ b/apps/web/src/components/blocksuite/header/utils.tsx@@ -32,6 +32,7 @@ export const OSWarningMessage: React.FC = () => {env.isBrowser && env.isChrome && env.chromeVersion < minimumChromeVersion);}, []);+if (notChrome) {return (<span>diff --git a/apps/web/src/components/pure/workspace-slider-bar/WorkspaceSelector/styles.ts b/apps/web/src/components/pure/workspace-slider-bar/WorkspaceSelector/styles.tsindex 0671439091..5ec6881e2a 100644--- a/apps/web/src/components/pure/workspace-slider-bar/WorkspaceSelector/styles.ts+++ b/apps/web/src/components/pure/workspace-slider-bar/WorkspaceSelector/styles.ts@@ -2,7 +2,7 @@ import { MuiAvatar, textEllipsis } from '@affine/component';import { styled } from '@affine/component';export const SelectorWrapper = styled('div')(({ theme }) => {return {- height: '42px',+ height: '52px',display: 'flex',alignItems: 'center',padding: '0 12px',