Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: fix action buttons

Stevenc12425329b22
diff --git a/web/package.json b/web/package.json
index 8dcf1f3cb..255af5781 100644
--- a/web/package.json
+++ b/web/package.json
@@ -19,7 +19,7 @@
"@mui/joy": "5.0.0-beta.48",
"@radix-ui/react-popover": "^1.1.2",
"@reduxjs/toolkit": "^2.3.0",
- "@usememos/mui": "0.0.1-alpha.20",
+ "@usememos/mui": "0.0.1-alpha.23",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"copy-to-clipboard": "^3.3.3",
diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml
index ccaa518af..f4a4c9b06 100644
--- a/web/pnpm-lock.yaml
+++ b/web/pnpm-lock.yaml
@@ -39,8 +39,8 @@ importers:
specifier: ^2.3.0
'@usememos/mui':
- specifier: 0.0.1-alpha.20
+ specifier: 0.0.1-alpha.23
class-variance-authority:
specifier: ^0.7.0
version: 0.7.0
@@ -1409,8 +1409,8 @@ packages:
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
- '@usememos/[email protected]':
- resolution: {integrity: sha512-O0wvI5z+ndKHLek+Be5t8e+KOSxPf0gHKJh8wu+M05bSzMldqs1dlm0kaP4bSW5rUifOybrEe0IUsesyg+eJzQ==}
+ '@usememos/[email protected]':
+ resolution: {integrity: sha512-zrGFdl985JLdHBQED+fOFI33XMzOlV5HJghb2L3mEtth95Flatz1xj7XXLOZMS/abLpmm8+KwIXLpuWa1Tw8pw==}
peerDependencies:
lucide-react: ^0.453.0
postcss: ^8.4.47
@@ -4642,7 +4642,7 @@ snapshots:
'@ungap/[email protected]': {}
dependencies:
lucide-react: 0.453.0([email protected])
postcss: 8.4.47
diff --git a/web/src/components/MemoEditor/ActionButton/AddMemoRelationPopover.tsx b/web/src/components/MemoEditor/ActionButton/AddMemoRelationPopover.tsx
index 9ce40d5a1..ead9cc3d7 100644
--- a/web/src/components/MemoEditor/ActionButton/AddMemoRelationPopover.tsx
+++ b/web/src/components/MemoEditor/ActionButton/AddMemoRelationPopover.tsx
@@ -129,9 +129,9 @@ const AddMemoRelationPopover = (props: Props) => {
return (
<Popover open={popoverOpen} onOpenChange={setPopoverOpen}>
- <PopoverTrigger>
- <Button size="sm" variant="plain">
- <LinkIcon className="w-5 h-5 mx-auto" />
+ <PopoverTrigger className="w-9">
+ <Button className="flex items-center justify-center" size="sm" variant="plain" asChild>
+ <LinkIcon className="w-5 h-5 mx-auto p-0" />
</Button>
</PopoverTrigger>
<PopoverContent align="center">
diff --git a/web/src/components/MemoEditor/ActionButton/LocationSelector.tsx b/web/src/components/MemoEditor/ActionButton/LocationSelector.tsx
index 862803f01..c137f92d2 100644
--- a/web/src/components/MemoEditor/ActionButton/LocationSelector.tsx
+++ b/web/src/components/MemoEditor/ActionButton/LocationSelector.tsx
@@ -94,7 +94,7 @@ const LocationSelector = (props: Props) => {
return (
<Popover open={popoverOpen} onOpenChange={setPopoverOpen}>
<PopoverTrigger>
- <Button className="group" size="sm" variant="plain">
+ <Button className="flex items-center justify-center" size="sm" variant="plain" asChild>
<MapPinIcon className="w-5 h-5 mx-auto shrink-0" />
{props.location && (
<>