fix: text overflows in the header option menu (#2393)
This commit is contained in:
1 parent
7e457f7b4c
commit
8ffc096fee
2 files changed
+2
-2
No files matched your search
-2
@@ -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}
|
||||
|
||||
+2
@@ -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')(() => {
|
||||
|
||||
Reference in new issue
Block a user