chore: update menu background color (#2170)

This commit is contained in:
JimmFly
2023-04-28 02:06:17 +08:00
committed by GitHub
parent dcf7e83eec
commit f3cbe54625
14 changed files with 31 additions and 29 deletions

View File

@@ -69,7 +69,13 @@ export const OperationCell: React.FC<OperationCellProps> = ({
favorite ? t('Removed from Favorites') : t('Added to Favorites')
);
}}
icon={favorite ? <FavoritedIcon /> : <FavoriteIcon />}
icon={
favorite ? (
<FavoritedIcon style={{ color: 'var(--affine-primary-color)' }} />
) : (
<FavoriteIcon />
)
}
>
{favorite ? t('Remove from favorites') : t('Add to Favorites')}
</MenuItem>
@@ -98,7 +104,7 @@ export const OperationCell: React.FC<OperationCellProps> = ({
<FlexWrapper alignItems="center" justifyContent="center">
<Menu
content={OperationMenu}
placement="bottom-end"
// placement="bottom-end"
disablePortal={true}
trigger="click"
>

View File

@@ -93,7 +93,7 @@ export const EditorOptionMenu = () => {
<Menu
width={276}
content={EditMenu}
placement="bottom-end"
// placement="bottom-end"
disablePortal={true}
trigger="click"
>

View File

@@ -16,7 +16,7 @@ export const UserAvatar = () => {
<Menu
width={276}
content={EditMenu}
placement="bottom-end"
// placement="bottom-end"
disablePortal={true}
trigger="click"
>