A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
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.tsxindex 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) {<Flexsx={{ 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")+ }+ /><Textas="span"variant={"body"}