fix: ui issues (#1371)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { displayFlex, IconButton, styled, Tooltip } from '@affine/component';
|
import { displayFlex, IconButton, styled, Tooltip } from '@affine/component';
|
||||||
import { useTranslation } from '@affine/i18n';
|
import { useTranslation } from '@affine/i18n';
|
||||||
import { CloudWorkspaceIcon } from '@blocksuite/icons';
|
import { CloudWorkspaceIcon, LocalWorkspaceIcon } from '@blocksuite/icons';
|
||||||
import { assertEquals, assertExists } from '@blocksuite/store';
|
import { assertEquals, assertExists } from '@blocksuite/store';
|
||||||
import { useRouter } from 'next/router';
|
import { useRouter } from 'next/router';
|
||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
@@ -14,7 +14,6 @@ import {
|
|||||||
RemWorkspaceFlavour,
|
RemWorkspaceFlavour,
|
||||||
} from '../../../../shared';
|
} from '../../../../shared';
|
||||||
import { TransformWorkspaceToAffineModal } from '../../../affine/transform-workspace-to-affine-modal';
|
import { TransformWorkspaceToAffineModal } from '../../../affine/transform-workspace-to-affine-modal';
|
||||||
import { LocalWorkspaceIcon } from '../../../pure/icons';
|
|
||||||
|
|
||||||
const NoNetWorkIcon = () => {
|
const NoNetWorkIcon = () => {
|
||||||
return (
|
return (
|
||||||
@@ -33,12 +32,13 @@ const NoNetWorkIcon = () => {
|
|||||||
</svg>
|
</svg>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
const IconWrapper = styled('div')(() => {
|
const IconWrapper = styled('div')(({ theme }) => {
|
||||||
return {
|
return {
|
||||||
width: '32px',
|
width: '32px',
|
||||||
height: '32px',
|
height: '32px',
|
||||||
marginRight: '12px',
|
marginRight: '12px',
|
||||||
fontSize: '22px',
|
fontSize: '22px',
|
||||||
|
color: theme.colors.iconColor,
|
||||||
...displayFlex('center', 'center'),
|
...displayFlex('center', 'center'),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ export const StyledHeaderContainer = styled('div')<{ hasWarning: boolean }>(
|
|||||||
({ hasWarning }) => {
|
({ hasWarning }) => {
|
||||||
return {
|
return {
|
||||||
height: hasWarning ? '96px' : '60px',
|
height: hasWarning ? '96px' : '60px',
|
||||||
padding: '0 28px',
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -13,6 +12,7 @@ export const StyledHeader = styled('div')<{ hasWarning: boolean }>(
|
|||||||
return {
|
return {
|
||||||
height: '60px',
|
height: '60px',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
padding: '0 28px',
|
||||||
...displayFlex('flex-end', 'center'),
|
...displayFlex('flex-end', 'center'),
|
||||||
background: theme.colors.pageBackground,
|
background: theme.colors.pageBackground,
|
||||||
transition: 'background-color 0.5s',
|
transition: 'background-color 0.5s',
|
||||||
@@ -53,11 +53,7 @@ export const StyledBrowserWarning = styled('div')<{ show: boolean }>(
|
|||||||
backgroundColor: theme.colors.warningBackground,
|
backgroundColor: theme.colors.warningBackground,
|
||||||
color: theme.colors.warningColor,
|
color: theme.colors.warningColor,
|
||||||
height: '36px',
|
height: '36px',
|
||||||
width: '100vw',
|
|
||||||
fontSize: theme.font.sm,
|
fontSize: theme.font.sm,
|
||||||
position: 'fixed',
|
|
||||||
left: '0',
|
|
||||||
top: '0',
|
|
||||||
display: show ? 'flex' : 'none',
|
display: show ? 'flex' : 'none',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ export const OSWarningMessage: React.FC = () => {
|
|||||||
env.isBrowser && env.isChrome && env.chromeVersion < minimumChromeVersion
|
env.isBrowser && env.isChrome && env.chromeVersion < minimumChromeVersion
|
||||||
);
|
);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
if (notChrome) {
|
if (notChrome) {
|
||||||
return (
|
return (
|
||||||
<span>
|
<span>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { MuiAvatar, textEllipsis } from '@affine/component';
|
|||||||
import { styled } from '@affine/component';
|
import { styled } from '@affine/component';
|
||||||
export const SelectorWrapper = styled('div')(({ theme }) => {
|
export const SelectorWrapper = styled('div')(({ theme }) => {
|
||||||
return {
|
return {
|
||||||
height: '42px',
|
height: '52px',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
padding: '0 12px',
|
padding: '0 12px',
|
||||||
|
|||||||
Reference in New Issue
Block a user