Skip to content

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

调整笔记本和笔记列表文字样式

yoma6160e6c6d63e
diff --git a/apps/web/src/components/MemoCard.tsx b/apps/web/src/components/MemoCard.tsx
index cd3265ce..bb429356 100644
--- a/apps/web/src/components/MemoCard.tsx
+++ b/apps/web/src/components/MemoCard.tsx
@@ -367,24 +367,24 @@ export const MemoCard = ({
onKeyDown={handleKeyDown}
title={t("memoCard.interactionHint")}
>
- <div className={cn("mb-2 flex min-w-0 items-center gap-1.5 text-base font-semibold leading-6 text-slate-900 lg:text-base", listDensity === "compact" && "mb-1")}>
+ <div className={cn("mb-2 flex min-w-0 items-center gap-1.5 text-base font-semibold leading-6 text-slate-950 lg:text-base", listDensity === "compact" && "mb-1")}>
{memo.isPinned && <Star className="h-4 w-4 shrink-0 fill-current text-slate-500" />}
<span className="min-w-0 truncate">{memoTitle}</span>
</div>
<div
className={cn(
- "line-clamp-2 min-h-10 text-sm leading-5 text-slate-800",
+ "line-clamp-2 min-h-10 text-sm leading-5 text-slate-950",
listDensity === "compact" && "line-clamp-1 min-h-0 text-[13px]"
)}
>
{memoExcerpt}
</div>
<div className={cn("mt-5 flex flex-wrap items-center gap-2", listDensity === "compact" && "mt-2")}>
- <time className="text-xs font-medium text-slate-400 lg:text-sm lg:font-normal lg:text-slate-500">
+ <time className="text-xs font-medium text-slate-700 lg:text-sm lg:font-normal lg:text-slate-700">
{formatMemoPreviewDate(memo.updatedAt, i18n.resolvedLanguage ?? i18n.language, t("memoCard.yesterday"))}
</time>
{memo.tags.slice(0, 3).map((tag) => (
- <span key={tag} className="rounded-sm bg-slate-100 px-1.5 py-0.5 text-xs font-medium text-slate-600">
+ <span key={tag} className="rounded-sm bg-slate-100 px-1.5 py-0.5 text-xs font-medium text-slate-800">
#{tag}
</span>
))}
diff --git a/apps/web/src/components/NotebookTreeItem.tsx b/apps/web/src/components/NotebookTreeItem.tsx
index 142bc0a2..eedab163 100644
--- a/apps/web/src/components/NotebookTreeItem.tsx
+++ b/apps/web/src/components/NotebookTreeItem.tsx
@@ -155,7 +155,7 @@ export const NotebookTreeItem = ({
<div
data-notebook-id={node.id}
className={cn(
- "group relative flex h-9 items-center gap-1 rounded-md px-2 text-sm transition-all duration-200 select-none",
+ "group relative flex h-9 items-center gap-1 rounded-md px-2 text-sm lg:text-[13px] transition-all duration-200 select-none",
selected
? "bg-slate-100 font-medium text-slate-950"
: hasSelectedDescendant