diff --git a/AGENTS.md b/AGENTS.md
index 2672dd9ef..5f6d5cdab 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -131,6 +131,8 @@ Black-box service tests live in `server/api/test/`, unit tests next to the code.
components). Controls come from the package; build a part it lacks on Base UI as its `custom-components.md` describes.
- Use a package component when one fits (`Button`, `Link`, `Spinner`, `Badge`). Its class functions (`buttonClasses()`,
`menuClasses()`, `badgeClasses()`) are for elements it can't render, such as a router link or a Base UI trigger.
+- Action menus use `md`, including custom rows styled with `menuClasses()`. Compact three-dot trigger buttons keep `sm`.
+- Field text follows its component size on every device; do not add touch-specific font sizing.
- Style with Tailwind CSS v4 and the package's `mu-` utilities (`bg-mu-surface`, `text-mu-text-secondary`, `rounded-mu-md`),
text with its type classes (`mu-caption`, `mu-body`, `mu-label`, `mu-title`), and `cn()` for class merging. No Tailwind
text sizes or old color names (`muted-foreground`, `destructive`, `popover`). The exceptions are the brand wordmark and
diff --git a/web/package.json b/web/package.json
index 2892b53de..9524e5285 100644
--- a/web/package.json
+++ b/web/package.json
@@ -28,7 +28,7 @@
"@tanstack/react-query-devtools": "^5.100.9",
"@usememos/canvas": "26.11.2",
"@usememos/editor": "26.11.3",
- "@usememos/ui": "26.11.18",
+ "@usememos/ui": "26.11.20",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"copy-to-clipboard": "^4.0.2",
diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml
index b465ac88d..338f3ec1f 100644
--- a/web/pnpm-lock.yaml
+++ b/web/pnpm-lock.yaml
@@ -45,8 +45,8 @@ importers:
specifier: 26.11.3
version: 26.11.3(react-dom@19.2.6(react@19.2.6))(react@19.2.6)
'@usememos/ui':
- specifier: 26.11.18
- version: 26.11.18(@base-ui/react@1.9.0(@types/react@19.2.14)(react-dom@19.2.6(react@19.2.6))(react@19.2.6))(lucide-react@1.34.0(react@19.2.6))(react-dom@19.2.6(react@19.2.6))(react@19.2.6)
+ specifier: 26.11.20
+ version: 26.11.20(@base-ui/react@1.9.0(@types/react@19.2.14)(react-dom@19.2.6(react@19.2.6))(react@19.2.6))(lucide-react@1.34.0(react@19.2.6))(react-dom@19.2.6(react@19.2.6))(react@19.2.6)
class-variance-authority:
specifier: ^0.7.1
version: 0.7.1
@@ -973,8 +973,8 @@ packages:
react-dom:
optional: true
- '@usememos/ui@26.11.18':
- resolution: {integrity: sha512-+KaFiHeKSDhyDBxyhHysbfroAMOBq+fsOhbbq8EZIO0r68+pb2XKAxGnn+/6ZbXkb0zcvomf0gd01MGxX2U1+Q==}
+ '@usememos/ui@26.11.20':
+ resolution: {integrity: sha512-jm2Il+Xa1/o381n2JJo/X3nozPunKMXsfWudnYNkqWfKSrOMitJNPcvgL6S8+/3+DM8beKssLdRz17o7CdVNqw==}
peerDependencies:
'@base-ui/react': 1.9.0
lucide-react: '>=1.0.0'
@@ -2392,7 +2392,7 @@ snapshots:
react: 19.2.6
react-dom: 19.2.6(react@19.2.6)
- '@usememos/ui@26.11.18(@base-ui/react@1.9.0(@types/react@19.2.14)(react-dom@19.2.6(react@19.2.6))(react@19.2.6))(lucide-react@1.34.0(react@19.2.6))(react-dom@19.2.6(react@19.2.6))(react@19.2.6)':
+ '@usememos/ui@26.11.20(@base-ui/react@1.9.0(@types/react@19.2.14)(react-dom@19.2.6(react@19.2.6))(react@19.2.6))(lucide-react@1.34.0(react@19.2.6))(react-dom@19.2.6(react@19.2.6))(react@19.2.6)':
dependencies:
'@base-ui/react': 1.9.0(@types/react@19.2.14)(react-dom@19.2.6(react@19.2.6))(react@19.2.6)
lucide-react: 1.34.0(react@19.2.6)
diff --git a/web/src/components/AppSidebar/QuickFindDialog.tsx b/web/src/components/AppSidebar/QuickFindDialog.tsx
index 0e4edcb93..57579e6e2 100644
--- a/web/src/components/AppSidebar/QuickFindDialog.tsx
+++ b/web/src/components/AppSidebar/QuickFindDialog.tsx
@@ -1,4 +1,4 @@
-import { Button, Dialog, Textarea, Toggle, ToggleGroup, Tooltip } from "@usememos/ui";
+import { Button, Dialog, Input, Textarea, Toggle, ToggleGroup, Tooltip } from "@usememos/ui";
import { CornerDownLeftIcon, SearchIcon } from "lucide-react";
import { type ChangeEvent, type FormEvent, type KeyboardEvent, useEffect, useId, useState } from "react";
import { useLocation, useNavigate } from "react-router-dom";
@@ -205,22 +205,23 @@ const QuickFindDialog = () => {
) : (
-
-
- {/* The dialog's own field, focused whenever it is open: the caret marks focus, as in a
- command palette, so it draws no outline around the borderless header. */}
-
+ }
placeholder={`${t("common.search")} ${compactScopeLabel}`}
aria-label={`${t("common.search")} ${scopeLabel}`}
+ suffix={
+
+ } />
+ }
+ />
+ {t("common.search")}
+
+ }
/>
-
- } />}
- />
- {t("common.search")}
-
)}
diff --git a/web/src/components/AppSidebar/TagsSection.tsx b/web/src/components/AppSidebar/TagsSection.tsx
index be96e9c02..8566b29b2 100644
--- a/web/src/components/AppSidebar/TagsSection.tsx
+++ b/web/src/components/AppSidebar/TagsSection.tsx
@@ -96,7 +96,7 @@ const TagsSection = ({ tagCount, onSelect, scope }: Props) => {
+ {
{memoView.title}
-
+ {
- setPartialState({
- expiration: Number(value),
- });
- };
-
const handleSaveBtnClick = async () => {
if (!state.description) {
fieldErrors.set("description", t("message.description-is-required"));
@@ -139,20 +133,25 @@ function CreateAccessTokenDialog({ open, onOpenChange, onSuccess }: Props) {
{fieldErrors.errors.description && {fieldErrors.errors.description}}
- }
+
+ {t("setting.access-token.create-dialog.expiration")} *
+
+ expiration !== null && setPartialState({ expiration })}
>
-
- {t("setting.access-token.create-dialog.expiration")} *
-
- {expirationOptions.map((option) => (
-
-
- {option.label}
-
-
- ))}
-
+
+
+
+
+ {expirationOptions.map((option) => (
+
+ {option.label}
+
+ ))}
+
+
)}
diff --git a/web/src/components/CreateUserDialog.tsx b/web/src/components/CreateUserDialog.tsx
index abf76112c..876e046fe 100644
--- a/web/src/components/CreateUserDialog.tsx
+++ b/web/src/components/CreateUserDialog.tsx
@@ -1,6 +1,6 @@
import { create } from "@bufbuild/protobuf";
import { FieldMaskSchema } from "@bufbuild/protobuf/wkt";
-import { Button, Dialog, Field, Fieldset, Input, Radio, RadioGroup } from "@usememos/ui";
+import { Button, Dialog, Field, Input, Select } from "@usememos/ui";
import { useEffect, useState } from "react";
import { userServiceClient } from "@/connect";
import { isFieldManaged, useManagedResource } from "@/hooks/useConfigurationQueries";
@@ -29,6 +29,10 @@ function CreateUserDialog({ open, onOpenChange, user: initialUser, onSuccess }:
const isCreating = !initialUser;
// The password is write-only, so configuration never locks it.
const managed = useManagedResource(initialUser?.name ?? "");
+ const roleOptions = [
+ { value: User_Role.USER, label: t("setting.member.user") },
+ { value: User_Role.ADMIN, label: t("setting.member.admin") },
+ ];
useEffect(() => {
if (initialUser) {
@@ -127,28 +131,24 @@ function CreateUserDialog({ open, onOpenChange, user: initialUser, onSuccess }:
{fieldErrors.errors.password && {fieldErrors.errors.password}}
- setPartialUser({ role: Number(value) as User_Role })}
- orientation="horizontal"
- />
- }
+ {t("common.role")}
+ role !== null && setPartialUser({ role })}
>
- {t("common.role")}
-
-
- {t("setting.member.user")}
-
-
-
-
- {t("setting.member.admin")}
-
-
-
+
+
+
+
+ {roleOptions.map((option) => (
+
+ {option.label}
+
+ ))}
+
+
diff --git a/web/src/components/CreateWebhookDialog.tsx b/web/src/components/CreateWebhookDialog.tsx
index f2e424e15..235dec1f3 100644
--- a/web/src/components/CreateWebhookDialog.tsx
+++ b/web/src/components/CreateWebhookDialog.tsx
@@ -205,7 +205,7 @@ function CreateWebhookDialog({ open, onOpenChange, webhookName, onSuccess }: Pro
}
diff --git a/web/src/components/MemoActionMenu/MemoActionMenu.tsx b/web/src/components/MemoActionMenu/MemoActionMenu.tsx
index 398ddcd0e..a4064f4be 100644
--- a/web/src/components/MemoActionMenu/MemoActionMenu.tsx
+++ b/web/src/components/MemoActionMenu/MemoActionMenu.tsx
@@ -32,7 +32,7 @@ import type { MemoActionMenuProps } from "./types";
* only Restore and Delete, and a viewer only Open and Copy.
*/
/** The open link is a real link, so its row takes the package's menu row classes. */
-const MENU_ROW_CLASSES = menuClasses({ size: "sm" });
+const MENU_ROW_CLASSES = menuClasses({ size: "md" });
const MemoActionMenu = (props: MemoActionMenuProps) => {
const { memo, parentPage, readonly } = props;
@@ -163,7 +163,7 @@ const MemoActionMenu = (props: MemoActionMenuProps) => {
};
return (
-
+ } />} />}
diff --git a/web/src/components/MemoDisplaySettingMenu.tsx b/web/src/components/MemoDisplaySettingMenu.tsx
index dca631a87..4db714ba5 100644
--- a/web/src/components/MemoDisplaySettingMenu.tsx
+++ b/web/src/components/MemoDisplaySettingMenu.tsx
@@ -59,7 +59,7 @@ function MemoDisplaySettingsContent() {
{/* Selects, not segmented rows: the two labels of a pair don't fit side by side in every language. */}
-
+ {t("memo.order-by")}
-
+ {t("memo.direction")}
-
+ {t("memo.compact-mode")}
{/* Wraps inside the width the controls set, so the hint never widens the popup. */}
{compactLocked && {t("memo.grid-compact-hint")}}
diff --git a/web/src/components/MemoEditor/edit/Toolbar/AudienceMenu.tsx b/web/src/components/MemoEditor/edit/Toolbar/AudienceMenu.tsx
index 8266006aa..2b3ac6479 100644
--- a/web/src/components/MemoEditor/edit/Toolbar/AudienceMenu.tsx
+++ b/web/src/components/MemoEditor/edit/Toolbar/AudienceMenu.tsx
@@ -42,7 +42,7 @@ const AudienceMenu = ({ value, onChange, space, onSpaceChange, disabled }: Audie
];
return (
-
+
{/* The trigger starts with an icon (a space mark or the lock) inside a span, so it takes the
package's icon-side padding itself; its gaps are the md icon gap, like a Button's. */}
= ({
return (
// md controls with mu-compact: 14px labels and 16px icons at 28px, the sidebar's height.
- // The menus they open are portaled outside, so they stay sm.
+ // The portaled menus use the regular md row.