Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

fix(web): tighten list and note title sizes

tianma-if0be4d3b29f8d
diff --git a/apps/web/src/components/MemoCard.tsx b/apps/web/src/components/MemoCard.tsx
index 3fb5a159..60e6b0ef 100644
--- a/apps/web/src/components/MemoCard.tsx
+++ b/apps/web/src/components/MemoCard.tsx
@@ -398,7 +398,7 @@ export const MemoCard = ({
onContextMenu={handleContextMenu}
onKeyDown={handleKeyDown}
>
- <div className={cn("mb-1.5 flex min-w-0 items-center gap-1.5 text-[15px] font-semibold tracking-[-0.012em] leading-snug text-slate-950", listDensity === "compact" && "mb-0.5 text-[14px]")}>
+ <div className={cn("mb-1.5 flex min-w-0 items-center gap-1.5 text-[14px] font-semibold tracking-[-0.012em] leading-snug text-slate-950", listDensity === "compact" && "mb-0.5")}>
{memo.isPinned && <Star className="h-4 w-4 shrink-0 fill-amber-400 text-amber-500" />}
<span className="min-w-0 truncate">{memoTitle}</span>
</div>
diff --git a/apps/web/src/components/MemoTitleInput.test.mjs b/apps/web/src/components/MemoTitleInput.test.mjs
index 1359bfa2..c32fd8be 100644
--- a/apps/web/src/components/MemoTitleInput.test.mjs
+++ b/apps/web/src/components/MemoTitleInput.test.mjs
@@ -8,7 +8,7 @@ const diagramSource = readFileSync(new URL("./DiagramEditorPane.tsx", import.met
describe("shared memo title input", () => {
test("owns the title appearance and input constraints", () => {
expect(componentSource).toContain("text-sm font-semibold");
- expect(componentSource).toContain("sm:text-base");
+ expect(componentSource).toContain("sm:text-[15px]");
expect(componentSource).not.toContain("lg:text-[26px]");
expect(componentSource).toContain("focus-visible:bg-muted");
expect(componentSource).toContain("maxLength={160}");
diff --git a/apps/web/src/components/MemoTitleInput.tsx b/apps/web/src/components/MemoTitleInput.tsx
index 2883cedc..e540c46d 100644
--- a/apps/web/src/components/MemoTitleInput.tsx
+++ b/apps/web/src/components/MemoTitleInput.tsx
@@ -23,7 +23,7 @@ export const MemoTitleInput = ({
{...props}
aria-label={ariaLabel ?? placeholder}
className={cn(
- "block w-full rounded-md border-0 bg-transparent px-2 py-1 text-sm font-semibold leading-tight text-slate-900 outline-none transition placeholder:text-slate-300 hover:bg-slate-100/60 focus-visible:bg-muted focus-visible:shadow-[inset_3px_0_0_var(--brand-green)] read-only:text-slate-600 read-only:hover:bg-transparent read-only:focus-visible:bg-transparent read-only:focus-visible:shadow-none sm:text-base",
+ "block w-full rounded-md border-0 bg-transparent px-2 py-1 text-sm font-semibold leading-tight text-slate-900 outline-none transition placeholder:text-slate-300 hover:bg-slate-100/60 focus-visible:bg-muted focus-visible:shadow-[inset_3px_0_0_var(--brand-green)] read-only:text-slate-600 read-only:hover:bg-transparent read-only:focus-visible:bg-transparent read-only:focus-visible:shadow-none sm:text-[15px]",
className
)}
maxLength={160}