mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-19 06:21:45 +03:00
feat: tips bar
This commit is contained in:
parent
0083b7445a
commit
b5d4410dca
@ -44,10 +44,37 @@ export const LayoutHeader = () => {
|
||||
<EditorBoardSwitcher />
|
||||
</StyledContainerForEditorBoardSwitcher>
|
||||
</StyledHeaderRoot>
|
||||
<StyledUnstableTips>
|
||||
<StyledUnstableTipsText>
|
||||
AFFiNE now under active development, the version is
|
||||
UNSTABLE, please DO NOT store important data in this version
|
||||
</StyledUnstableTipsText>
|
||||
</StyledUnstableTips>
|
||||
</StyledContainerForHeaderRoot>
|
||||
);
|
||||
};
|
||||
|
||||
const StyledUnstableTips = styled('div')(({ theme }) => {
|
||||
return {
|
||||
width: '100%',
|
||||
height: '2em',
|
||||
display: 'flex',
|
||||
zIndex: theme.affine.zIndex.header,
|
||||
backgroundColor: '#fff8c5',
|
||||
borderWidth: '1px 0',
|
||||
borderColor: '#e4e49588',
|
||||
borderStyle: 'solid',
|
||||
};
|
||||
});
|
||||
|
||||
const StyledUnstableTipsText = styled('span')(({ theme }) => {
|
||||
return {
|
||||
margin: 'auto 36px',
|
||||
width: '100%',
|
||||
textAlign: 'center',
|
||||
};
|
||||
});
|
||||
|
||||
const StyledContainerForHeaderRoot = styled('div')(({ theme }) => {
|
||||
return {
|
||||
width: '100%',
|
||||
@ -114,7 +141,9 @@ const StyledLogoIcon = styled(LogoIcon)(({ theme }) => {
|
||||
|
||||
const StyledContainerForEditorBoardSwitcher = styled('div')(({ theme }) => {
|
||||
return {
|
||||
width: '100%',
|
||||
position: 'absolute',
|
||||
left: '50%',
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
};
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user