Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ui: leave space for icon in menu button even if no icon

Abdullah Atta6b3065617db6
diff --git a/packages/ui/src/components/menu/menu-button.tsx b/packages/ui/src/components/menu/menu-button.tsx
index c6c677755..47c71b6a5 100644
--- a/packages/ui/src/components/menu/menu-button.tsx
+++ b/packages/ui/src/components/menu/menu-button.tsx
@@ -73,17 +73,15 @@ export function MenuButton(props: MenuButtonProps) {
<Flex
sx={{ fontSize: "inherit", fontFamily: "inherit", flexShrink: 0 }}
>
- {icon && (
- <Icon
- path={icon}
- size={"medium"}
- sx={{ mr: 1 }}
- color={
- (styles?.icon?.color as string) ||
- (variant === "dangerous" ? "icon-error" : "icon")
- }
- />
- )}
+ <Icon
+ path={icon || ""}
+ size={"medium"}
+ sx={{ mr: 1 }}
+ color={
+ (styles?.icon?.color as string) ||
+ (variant === "dangerous" ? "icon-error" : "icon")
+ }
+ />
<Text
as="span"
variant={"body"}