fix: text overflows in the header option menu (#2393)

This commit is contained in:
JimmFly 2023-05-16 17:35:57 +08:00 committed by GitHub
parent 7e457f7b4c
commit 8ffc096fee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,6 @@ const CommonMenu = () => {
return (
<FlexWrapper alignItems="center" justifyContent="center">
<Menu
width={276}
content={content}
placement="bottom"
disablePortal={true}
@ -137,7 +136,6 @@ const PageMenu = () => {
<>
<FlexWrapper alignItems="center" justifyContent="center">
<Menu
width={276}
content={EditMenu}
placement="bottom-end"
disablePortal={true}

View File

@ -30,10 +30,12 @@ export const StyledThemeButton = styled('button')<{
active: boolean;
}>(({ active }) => {
return {
padding: '0 8px',
height: '100%',
flex: 1,
cursor: 'pointer',
color: active ? 'var(--affine-primary-color)' : 'var(--affine-icon-color)',
whiteSpace: 'nowrap',
};
});
export const StyledVerticalDivider = styled('div')(() => {