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): complete secondary interface typography alignment

tianma-ifb8d9365d0433
diff --git a/apps/web/src/components/AiPromptsPane.tsx b/apps/web/src/components/AiPromptsPane.tsx
index 5f6b6973..95c3370f 100644
--- a/apps/web/src/components/AiPromptsPane.tsx
+++ b/apps/web/src/components/AiPromptsPane.tsx
@@ -338,7 +338,7 @@ export const AiPromptsPane = ({ onClose, onOpenExecutionCenter }: { onClose: ()
) : null}
{promptsQuery.isLoading ? (
- <p className="flex items-center gap-2 text-sm text-slate-500">
+ <p className="flex items-center gap-2 text-xs leading-5 text-slate-500">
<Loader2 className="h-4 w-4 animate-spin" />
{t("common.loading")}
</p>
diff --git a/apps/web/src/components/SettingsPane.tsx b/apps/web/src/components/SettingsPane.tsx
index 0367d3f7..ca44feb0 100644
--- a/apps/web/src/components/SettingsPane.tsx
+++ b/apps/web/src/components/SettingsPane.tsx
@@ -372,7 +372,7 @@ export const SettingsPane = ({
{deployedUpdateUnseen ? <span className="absolute right-0.5 top-0.5 h-1.5 w-1.5 rounded-full bg-emerald-500 ring-2 ring-card" /> : null}
</span>
<span className="min-w-0">
- <span className="block truncate text-sm font-semibold">{t("systemInfo.title")}</span>
+ <span className="block truncate text-xs font-normal leading-5">{t("systemInfo.title")}</span>
<span className="mt-0.5 block truncate text-xs text-slate-500">{t("systemInfo.description")}</span>
</span>
</span>
diff --git a/apps/web/src/components/TagsPane.tsx b/apps/web/src/components/TagsPane.tsx
index b5265687..03a4300e 100644
--- a/apps/web/src/components/TagsPane.tsx
+++ b/apps/web/src/components/TagsPane.tsx
@@ -71,9 +71,9 @@ export const TagsPane = ({
<main className="min-h-0 flex-1 overflow-y-auto px-4 py-4 lg:px-6 lg:py-6">
<div className="mx-auto w-full max-w-3xl">
{tagsQuery.isLoading ? (
- <div className="px-2 py-8 text-center text-sm text-slate-500">{t("tagsDialog.loading")}</div>
+ <div className="px-2 py-8 text-center text-xs leading-5 text-slate-500">{t("tagsDialog.loading")}</div>
) : tags.length === 0 ? (
- <div className="rounded-md border border-dashed border-slate-300 px-4 py-8 text-center text-sm text-slate-500">{t("tagsDialog.empty")}</div>
+ <div className="rounded-md border border-dashed border-slate-300 px-4 py-8 text-center text-xs leading-5 text-slate-500">{t("tagsDialog.empty")}</div>
) : (
<div className="space-y-2">
{tags.map((tag) => {
diff --git a/apps/web/src/components/dialogs/AiAssistantDialog.tsx b/apps/web/src/components/dialogs/AiAssistantDialog.tsx
index e3af7c6d..0fcf1522 100644
--- a/apps/web/src/components/dialogs/AiAssistantDialog.tsx
+++ b/apps/web/src/components/dialogs/AiAssistantDialog.tsx
@@ -737,7 +737,7 @@ export const AiAssistantDialog = ({
) : null}
{showInstructionComposer || showSourceComposer ? (
<div className="grid gap-2">
- <label className="grid gap-1.5 text-sm font-medium text-slate-700">
+ <label className="grid gap-1.5 text-xs font-normal leading-5 text-slate-700">
{t(showInstructionComposer
? (hasSelection ? "aiAssistant.customInstructionSelected" : "aiAssistant.customInstruction")
: "aiAssistant.inputContent")}
@@ -776,7 +776,7 @@ export const AiAssistantDialog = ({
) : null}
<div className="grid gap-2">
<div className="flex items-center justify-between gap-3">
- <span className="text-sm font-medium text-slate-700">{t("aiAssistant.actionLabel")}</span>
+ <span className="text-xs font-normal leading-5 text-slate-700">{t("aiAssistant.actionLabel")}</span>
{onOpenPromptLibrary ? (
<button
type="button"
@@ -849,7 +849,7 @@ export const AiAssistantDialog = ({
</div>
{promptNeedsTargetLanguage(effectiveParameterKind) ? (
<div className="grid gap-1.5">
- <span className="text-sm font-medium text-slate-700">{t("aiAssistant.targetLanguage")}</span>
+ <span className="text-xs font-normal leading-5 text-slate-700">{t("aiAssistant.targetLanguage")}</span>
<Select value={targetLanguage} onValueChange={(value) => {
const nextTargetLanguage = value as TargetLanguage;
setTargetLanguage(nextTargetLanguage);
@@ -880,7 +880,7 @@ export const AiAssistantDialog = ({
) : null}
{promptNeedsTone(effectiveParameterKind) ? (
<div className="grid gap-1.5">
- <span className="text-sm font-medium text-slate-700">{t("aiAssistant.tone")}</span>
+ <span className="text-xs font-normal leading-5 text-slate-700">{t("aiAssistant.tone")}</span>
<Select value={tone} onValueChange={(value) => {
const nextTone = value as AiTone;
setTone(nextTone);
@@ -974,7 +974,7 @@ export const AiAssistantDialog = ({
</div>
<div className="grid gap-1.5">
<div className="flex items-center justify-between gap-3">
- <span className="text-sm font-medium text-slate-700">{t("aiAssistant.result")}</span>
+ <span className="text-xs font-normal leading-5 text-slate-700">{t("aiAssistant.result")}</span>
{isGenerating ? (
<span className="flex items-center gap-1.5 text-xs font-medium text-slate-600">
<Loader2 className="h-3.5 w-3.5 animate-spin" />{t("aiAssistant.generating")}
@@ -1002,7 +1002,7 @@ export const AiAssistantDialog = ({
</div>
{output && !isGenerating ? (
<div className="grid gap-1.5 rounded-lg border border-slate-200 bg-card p-3">
- <span className="text-sm font-medium text-slate-700">{t("aiAssistant.refine")}</span>
+ <span className="text-xs font-normal leading-5 text-slate-700">{t("aiAssistant.refine")}</span>
<div className="flex flex-col gap-2 sm:flex-row">
<input
className="h-10 min-w-0 flex-1 rounded-md border border-slate-200 bg-card px-3 text-sm outline-none focus:border-slate-900 focus:ring-2 focus:ring-slate-900/10"
@@ -1070,7 +1070,7 @@ export const AiAssistantDialog = ({
<DialogTitle>{t("aiAssistant.saveAsPromptTitle")}</DialogTitle>
<DialogDescription>{t("aiPrompts.description")}</DialogDescription>
</DialogHeader>
- <label className="grid gap-1.5 text-sm font-medium text-slate-700">
+ <label className="grid gap-1.5 text-xs font-normal leading-5 text-slate-700">
{t("aiAssistant.promptName")}
<Input
value={saveName}
@@ -1081,7 +1081,7 @@ export const AiAssistantDialog = ({
autoFocus
/>
</label>
- <label className="grid gap-1.5 text-sm font-medium text-slate-700">
+ <label className="grid gap-1.5 text-xs font-normal leading-5 text-slate-700">
{t("aiAssistant.promptDescription")}
<Input
value={saveDescription}
diff --git a/apps/web/src/components/dialogs/ConfirmDialogs.tsx b/apps/web/src/components/dialogs/ConfirmDialogs.tsx
index d00b1645..84fa6187 100644
--- a/apps/web/src/components/dialogs/ConfirmDialogs.tsx
+++ b/apps/web/src/components/dialogs/ConfirmDialogs.tsx
@@ -62,7 +62,7 @@ export const AppConfirmDialog = ({
<DialogDescription className="mt-1 text-sm leading-5 text-slate-500">
{description}
</DialogDescription>
- {error ? <p className="mt-2 text-sm text-rose-600" role="alert">{error}</p> : null}
+ {error ? <p className="mt-2 text-xs leading-5 text-rose-600" role="alert">{error}</p> : null}
</div>
</DialogHeader>
<DialogFooter className="flex flex-col-reverse gap-2 px-5 py-4 sm:flex-row sm:justify-end border-t border-slate-50 bg-slate-50/50">
@@ -165,7 +165,7 @@ export const NotebookNameDialog = ({
<DialogTitle className="font-semibold text-slate-950">
{title}
</DialogTitle>
- <DialogDescription className="mt-1 text-sm leading-5 text-slate-500">
+ <DialogDescription className="mt-1 text-xs leading-5 text-slate-500">
{dialog.mode === "create" ? t("dialogs.notebookName.createDescription") : t("dialogs.notebookName.renameDescription")}
</DialogDescription>
</div>
diff --git a/apps/web/src/components/dialogs/ExternalLinkDialog.tsx b/apps/web/src/components/dialogs/ExternalLinkDialog.tsx
index d0dfcf4f..b16efaf7 100644
--- a/apps/web/src/components/dialogs/ExternalLinkDialog.tsx
+++ b/apps/web/src/components/dialogs/ExternalLinkDialog.tsx
@@ -83,7 +83,7 @@ export const ExternalLinkDialog = ({
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="max-w-md gap-0 overflow-hidden p-0">
<DialogHeader className="border-b border-slate-200 px-5 py-5 pr-12 text-left">
- <DialogTitle className="flex items-center gap-2 text-base">
+ <DialogTitle className="flex items-center gap-2 text-sm leading-6">
<LinkIcon className="h-5 w-5 text-slate-700" />
{canRemove ? t("externalLinkDialog.editTitle") : t("externalLinkDialog.title")}
</DialogTitle>
diff --git a/apps/web/src/components/dialogs/MathFormulaDialog.tsx b/apps/web/src/components/dialogs/MathFormulaDialog.tsx
index 914f05a2..a85afdb2 100644
--- a/apps/web/src/components/dialogs/MathFormulaDialog.tsx
+++ b/apps/web/src/components/dialogs/MathFormulaDialog.tsx
@@ -83,7 +83,7 @@ export const MathFormulaDialog = ({
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="max-w-lg gap-0 overflow-hidden p-0">
<DialogHeader className="border-b border-slate-200 px-5 py-5 pr-12 text-left">
- <DialogTitle className="flex items-center gap-2 text-base">
+ <DialogTitle className="flex items-center gap-2 text-sm leading-6">
<Sigma className="h-5 w-5 text-slate-700" />
{editing ? t("mathFormulaDialog.editTitle") : t("mathFormulaDialog.title")}
</DialogTitle>
@@ -155,10 +155,10 @@ export const MathFormulaDialog = ({
previewHtml ? (
<span dangerouslySetInnerHTML={{ __html: previewHtml }} />
) : (
- <p className="text-sm text-rose-700">{t("mathFormulaDialog.previewError")}</p>
+ <p className="text-xs leading-5 text-rose-700">{t("mathFormulaDialog.previewError")}</p>
)
) : (
- <p className="text-sm text-slate-400">{t("mathFormulaDialog.previewEmpty")}</p>
+ <p className="text-xs leading-5 text-slate-400">{t("mathFormulaDialog.previewEmpty")}</p>
)}
</div>
</div>
diff --git a/apps/web/src/components/dialogs/RevisionHistoryDialog.tsx b/apps/web/src/components/dialogs/RevisionHistoryDialog.tsx
index de70d0a4..4bfddbfe 100644
--- a/apps/web/src/components/dialogs/RevisionHistoryDialog.tsx
+++ b/apps/web/src/components/dialogs/RevisionHistoryDialog.tsx
@@ -85,11 +85,11 @@ export const RevisionHistoryDialog = ({
<DialogContent className="grid max-h-[88dvh] max-w-[1120px] grid-rows-[auto_minmax(0,1fr)] gap-0 overflow-hidden rounded-lg border border-slate-200 bg-card p-0 shadow-xl">
<DialogHeader className="border-b border-slate-200 px-5 py-4 pr-12 text-left">
<div className="min-w-0">
- <DialogTitle className="flex items-center gap-2 text-lg font-semibold text-slate-950">
+ <DialogTitle className="flex items-center gap-2 text-sm leading-7 font-semibold text-slate-950">
<History className="h-5 w-5 text-slate-700" />
{t("revisions.title")}
</DialogTitle>
- <DialogDescription className="mt-1 truncate text-sm text-slate-500">
+ <DialogDescription className="mt-1 truncate text-xs leading-5 text-slate-500">
{getMemoTitle(memo.title)}
</DialogDescription>
</div>
@@ -133,9 +133,9 @@ export const RevisionHistoryDialog = ({
{t("revisions.timeline")}
</div>
{revisionsQuery.isLoading ? (
- <div className="px-2 py-8 text-center text-sm text-slate-500">{t("revisions.loading")}</div>
+ <div className="px-2 py-8 text-center text-xs leading-5 text-slate-500">{t("revisions.loading")}</div>
) : revisions.length === 0 ? (
- <div className="rounded-md border border-dashed border-slate-300 px-4 py-8 text-center text-sm text-slate-500">
+ <div className="rounded-md border border-dashed border-slate-300 px-4 py-8 text-center text-xs leading-5 text-slate-500">
{t("revisions.empty")}
</div>
) : (
@@ -230,7 +230,7 @@ export const RevisionHistoryDialog = ({
})}
</div>
) : (
- <div className="flex h-40 items-center justify-center text-sm text-slate-400">
+ <div className="flex h-40 items-center justify-center text-xs leading-5 text-slate-400">
{t("revisions.emptyMemo")}
</div>
)}
diff --git a/apps/web/src/components/dialogs/ShareMemoDialog.tsx b/apps/web/src/components/dialogs/ShareMemoDialog.tsx
index 351c14a8..da34eea1 100644
--- a/apps/web/src/components/dialogs/ShareMemoDialog.tsx
+++ b/apps/web/src/components/dialogs/ShareMemoDialog.tsx
@@ -142,7 +142,7 @@ export const ShareMemoDialog = ({
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="max-w-lg gap-0 overflow-hidden p-0">
<DialogHeader className="border-b border-slate-200 px-5 py-5 pr-12 text-left">
- <DialogTitle className="flex items-center gap-2 text-base">
+ <DialogTitle className="flex items-center gap-2 text-sm leading-6">
<Share2 className="h-5 w-5 text-slate-700" />
{t("sharing.title")}
</DialogTitle>
@@ -173,7 +173,7 @@ export const ShareMemoDialog = ({
<div className="space-y-3 rounded-lg border border-slate-200 px-3 py-3">
<div className="flex items-center justify-between gap-3">
- <div className="text-sm font-medium text-slate-900">{t("sharing.passwordToggle")}</div>
+ <div className="text-xs font-normal leading-5 text-slate-900">{t("sharing.passwordToggle")}</div>
<Switch
checked={share.passwordProtected}
disabled={isWorking}
@@ -240,14 +240,14 @@ export const ShareMemoDialog = ({
</>
) : (
<div className="space-y-4">
- <p className="text-sm leading-6 text-slate-600">{t("sharing.inactiveHint")}</p>
+ <p className="text-xs leading-6 text-slate-600">{t("sharing.inactiveHint")}</p>
<Button className="w-full" variant="solid" disabled={isWorking} onClick={() => createMutation.mutate()}>
{createMutation.isPending ? <LoaderCircle className="h-4 w-4 animate-spin" /> : <Link2 className="h-4 w-4" />}
{t("sharing.create")}
</Button>
</div>
)}
- {error ? <p className="text-sm text-rose-600" role="alert">{t("sharing.error")}</p> : null}
+ {error ? <p className="text-xs leading-5 text-rose-600" role="alert">{t("sharing.error")}</p> : null}
</div>
</DialogContent>
</Dialog>
diff --git a/apps/web/src/components/dialogs/ShareNoteImageDialog.tsx b/apps/web/src/components/dialogs/ShareNoteImageDialog.tsx
index 4dba535b..96746fda 100644
--- a/apps/web/src/components/dialogs/ShareNoteImageDialog.tsx
+++ b/apps/web/src/components/dialogs/ShareNoteImageDialog.tsx
@@ -209,7 +209,7 @@ export const ShareNoteImageDialog = ({
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="max-h-[94vh] max-w-5xl gap-0 overflow-hidden p-0">
<DialogHeader className="border-b border-slate-200 px-5 py-3.5 pr-12 text-left">
- <DialogTitle className="flex items-center gap-2 text-base font-semibold">
+ <DialogTitle className="flex items-center gap-2 text-sm leading-6 font-semibold">
<Share2 className="h-4.5 w-4.5 text-slate-700" />
{t("editor.imageShare.title")}
</DialogTitle>
@@ -226,11 +226,11 @@ export const ShareNoteImageDialog = ({
src={previewUrl}
/>
) : error ? (
- <div className="flex min-h-64 items-center justify-center text-sm text-rose-600" role="alert">
+ <div className="flex min-h-64 items-center justify-center text-xs leading-5 text-rose-600" role="alert">
{t("editor.imageExport.error")}
</div>
) : (
- <div className="flex min-h-64 items-center justify-center gap-2 text-sm text-slate-500" role="status">
+ <div className="flex min-h-64 items-center justify-center gap-2 text-xs leading-5 text-slate-500" role="status">
<LoaderCircle className="h-5 w-5 animate-spin text-slate-500" />
{t("editor.imageShare.generating")}
</div>
diff --git a/apps/web/src/components/dialogs/TableFormDialog.tsx b/apps/web/src/components/dialogs/TableFormDialog.tsx
index fe07e943..65f63c3f 100644
--- a/apps/web/src/components/dialogs/TableFormDialog.tsx
+++ b/apps/web/src/components/dialogs/TableFormDialog.tsx
@@ -304,7 +304,7 @@ export const TableFormDialog = ({
</div>
) : (
<>
- <label className="flex items-center justify-between gap-3 text-sm">
+ <label className="flex items-center justify-between gap-3 text-xs font-normal leading-5">
<span>{t("structuredTable.form.enabled")}</span>
<Switch checked={draft.enabled} onCheckedChange={changeEnabled} aria-label={t("structuredTable.form.enabled")} />
</label>
@@ -334,7 +334,7 @@ export const TableFormDialog = ({
{t("structuredTable.form.saving")}
</p>
) : null}
- <label className="flex items-center justify-between gap-3 text-sm">
+ <label className="flex items-center justify-between gap-3 text-xs font-normal leading-5">
<span>{t("structuredTable.form.password")}</span>
<Switch checked={draft.passwordProtected} onCheckedChange={changePassword} aria-label={t("structuredTable.form.password")} />
</label>
@@ -355,7 +355,7 @@ export const TableFormDialog = ({
{t("structuredTable.form.regenerate")}
</Button>
) : null}
- <label className="block space-y-1 text-sm">
+ <label className="block space-y-1 text-xs font-normal leading-5">
<span>{t("structuredTable.form.formTitle")}</span>
<Input
value={draft.title}
@@ -363,7 +363,7 @@ export const TableFormDialog = ({
aria-label={t("structuredTable.form.formTitle")}
/>
</label>
- <label className="block space-y-1 text-sm">
+ <label className="block space-y-1 text-xs font-normal leading-5">
<span>{t("structuredTable.form.formDescription")}</span>
<textarea
className="min-h-20 w-full rounded-md border border-slate-200 px-3 py-2 text-sm outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20"
@@ -372,7 +372,7 @@ export const TableFormDialog = ({
aria-label={t("structuredTable.form.formDescription")}
/>
</label>
- <label className="block space-y-1 text-sm">
+ <label className="block space-y-1 text-xs font-normal leading-5">
<span>{t("structuredTable.form.submitLabel")}</span>
<Input
value={draft.submitLabel}
@@ -382,11 +382,11 @@ export const TableFormDialog = ({
/>
</label>
<div className="space-y-2">
- <p className="text-sm">{t("structuredTable.form.fields")}</p>
+ <p className="text-xs leading-5">{t("structuredTable.form.fields")}</p>
{fields.map((field) => {
const setting = draft.selected.find((item) => item.fieldId === field.id);
return (
- <div key={field.id} className="flex items-center justify-between gap-3 text-sm">
+ <div key={field.id} className="flex items-center justify-between gap-3 text-xs font-normal leading-5">
<label className="flex items-center gap-2">
<input
type="checkbox"
@@ -411,9 +411,9 @@ export const TableFormDialog = ({
);
})}
</div>
- {error ? <p className="text-sm text-rose-600" role="alert">{error}</p> : null}
- {!error && saving && link ? <p className="text-sm text-slate-500" role="status">{t("structuredTable.form.saving")}</p> : null}
- {!error && !saving && confirmed ? <p className="text-sm text-emerald-700" role="status">{t("structuredTable.form.saved")}</p> : null}
+ {error ? <p className="text-xs leading-5 text-rose-600" role="alert">{error}</p> : null}
+ {!error && saving && link ? <p className="text-xs leading-5 text-slate-500" role="status">{t("structuredTable.form.saving")}</p> : null}
+ {!error && !saving && confirmed ? <p className="text-xs leading-5 text-emerald-700" role="status">{t("structuredTable.form.saved")}</p> : null}
</>
)}
</DialogContent>
diff --git a/apps/web/src/components/dialogs/TemplatesDialog.tsx b/apps/web/src/components/dialogs/TemplatesDialog.tsx
index cbfc7036..73fc46ec 100644
--- a/apps/web/src/components/dialogs/TemplatesDialog.tsx
+++ b/apps/web/src/components/dialogs/TemplatesDialog.tsx
@@ -57,7 +57,7 @@ export const TemplatesDialog = ({
<DialogContent className="max-w-[620px] p-0 overflow-hidden border border-slate-200 bg-card shadow-lg rounded-lg">
<DialogHeader className="flex flex-row items-start justify-between gap-3 border-b border-slate-200 px-5 py-4 text-left">
<div className="min-w-0">
- <DialogTitle className="flex items-center gap-2 text-base font-semibold text-slate-950">
+ <DialogTitle className="flex items-center gap-2 text-sm leading-6 font-semibold text-slate-950">
<LayoutList className="h-4 w-4 text-slate-900" />
{t("templates.title")}
</DialogTitle>
diff --git a/apps/web/src/components/execution/ExecutionCenterPane.tsx b/apps/web/src/components/execution/ExecutionCenterPane.tsx
index cb80c784..26e79551 100644
--- a/apps/web/src/components/execution/ExecutionCenterPane.tsx
+++ b/apps/web/src/components/execution/ExecutionCenterPane.tsx
@@ -80,7 +80,7 @@ export const ExecutionCenterPane = ({
<Loader2 className="h-5 w-5 animate-spin" aria-label={t("executionHistory.loading")} />
</div>
) : historyQuery.isError ? (
- <div role="alert" className="rounded-lg border border-rose-200 bg-rose-50 p-4 text-sm text-rose-700">
+ <div role="alert" className="rounded-lg border border-rose-200 bg-rose-50 p-4 text-xs leading-5 text-rose-700">
<p>{historyQuery.error instanceof Error ? historyQuery.error.message : t("executionHistory.loadFailed")}</p>
<Button className="mt-3" size="sm" variant="outline" onClick={() => void historyQuery.refetch()}>
{t("executionHistory.retry")}
@@ -89,7 +89,7 @@ export const ExecutionCenterPane = ({
) : items.length === 0 ? (
<div className="flex min-h-56 flex-col items-center justify-center gap-2 rounded-xl border border-dashed border-slate-200 bg-card text-center text-slate-400">
<Clock3 className="h-7 w-7" />
- <p className="text-sm">{t("executionHistory.empty")}</p>
+ <p className="text-xs leading-5">{t("executionHistory.empty")}</p>
</div>
) : (
<div className="grid gap-3">
diff --git a/apps/web/src/components/execution/ExecutionHistoryDialog.tsx b/apps/web/src/components/execution/ExecutionHistoryDialog.tsx
index 37a80897..56041043 100644
--- a/apps/web/src/components/execution/ExecutionHistoryDialog.tsx
+++ b/apps/web/src/components/execution/ExecutionHistoryDialog.tsx
@@ -69,13 +69,13 @@ export const ExecutionHistoryDialog = ({
<Loader2 className="h-5 w-5 animate-spin" aria-label={t("executionHistory.loading")} />
</div>
) : historyQuery.isError ? (
- <div role="alert" className="rounded-lg border border-rose-200 bg-rose-50 p-3 text-sm text-rose-700">
+ <div role="alert" className="rounded-lg border border-rose-200 bg-rose-50 p-3 text-xs leading-5 text-rose-700">
{historyQuery.error instanceof Error ? historyQuery.error.message : t("executionHistory.loadFailed")}
</div>
) : items.length === 0 ? (
<div className="flex min-h-40 flex-col items-center justify-center gap-2 text-center text-slate-400">
<Clock3 className="h-6 w-6" />
- <p className="text-sm">{t("executionHistory.empty")}</p>
+ <p className="text-xs leading-5">{t("executionHistory.empty")}</p>
</div>
) : (
<div className="grid gap-3">
diff --git a/apps/web/src/components/plugins/PluginPanelChrome.tsx b/apps/web/src/components/plugins/PluginPanelChrome.tsx
index 873f651f..ca6fb8bc 100644
--- a/apps/web/src/components/plugins/PluginPanelChrome.tsx
+++ b/apps/web/src/components/plugins/PluginPanelChrome.tsx
@@ -104,7 +104,7 @@ export const PluginPanelEmpty = ({ chrome }: { chrome: PluginPanelChrome }) => {
return (
<div className="flex min-h-40 flex-1 flex-col items-center justify-center gap-2 px-6 py-16 text-center">
<p className="text-sm font-medium text-slate-800">{chrome.empty.title}</p>
- {chrome.empty.description ? <p className="max-w-md text-sm text-slate-500">{chrome.empty.description}</p> : null}
+ {chrome.empty.description ? <p className="max-w-md text-xs leading-5 text-slate-500">{chrome.empty.description}</p> : null}
{chrome.empty.action ? <ActionButton action={chrome.empty.action} onAction={chrome.onAction} /> : null}
</div>
);
diff --git a/apps/web/src/components/plugins/PluginSettingsSection.tsx b/apps/web/src/components/plugins/PluginSettingsSection.tsx
index aeb0d2db..7ddad909 100644
--- a/apps/web/src/components/plugins/PluginSettingsSection.tsx
+++ b/apps/web/src/components/plugins/PluginSettingsSection.tsx
@@ -23,6 +23,7 @@ import {
DialogTitle,
DialogTrigger,
} from "@/components/ui/dialog";
+import { SETTINGS_ITEM_TITLE_CLASSNAME } from "@/components/settings/settings-ui";
import { groupPluginSettingFields } from "./plugin-settings-layout";
const PluginSettingListDialog = ({ field }: { field: PluginSettingField }) => {
@@ -89,7 +90,7 @@ const PluginSettingFieldRow = ({
const { t } = useTranslation();
const descriptionId = field.description ? `${inputId}-description` : undefined;
const label = (
- <label htmlFor={inputId} className="block text-sm font-medium leading-5 text-slate-800">
+ <label htmlFor={inputId} className={`block ${SETTINGS_ITEM_TITLE_CLASSNAME}`}>
{field.label}
{field.required ? <span className="ml-1 text-rose-600" aria-hidden="true">*</span> : null}
</label>
@@ -306,9 +307,9 @@ export const PluginSettingsSection = ({ host, manifest }: { host: EdgeEverPlugin
<header className="border-b border-slate-200 pb-5">
<h3 id={`${formId}-title`} className="text-sm font-semibold text-slate-900">{t("plugins.settings.title")}</h3>
</header>
- {loading ? <p className="py-8 text-sm text-slate-500" role="status">{t("common.loading")}</p> : loadError ? (
+ {loading ? <p className="py-8 text-xs leading-5 text-slate-500" role="status">{t("common.loading")}</p> : loadError ? (
<div className="mt-5 grid justify-items-start gap-3 rounded-lg border border-rose-200 bg-rose-50 p-4">
- <p className="text-sm leading-6 text-rose-700" role="alert">{t("plugins.settings.loadFailed", { message: loadError })}</p>
+ <p className="text-xs leading-6 text-rose-700" role="alert">{t("plugins.settings.loadFailed", { message: loadError })}</p>
<Button size="sm" variant="outline" onClick={() => setLoadAttempt((attempt) => attempt + 1)}>{t("plugins.settings.retry")}</Button>
</div>
) : (
@@ -349,7 +350,7 @@ export const PluginSettingsSection = ({ host, manifest }: { host: EdgeEverPlugin
);
})}
</div>
- {error ? <p className="border-t border-slate-200 pt-4 text-sm text-rose-700" role="alert">{t("plugins.settings.saveFailed", { message: error })}</p> : null}
+ {error ? <p className="border-t border-slate-200 pt-4 text-xs leading-5 text-rose-700" role="alert">{t("plugins.settings.saveFailed", { message: error })}</p> : null}
</form>
)}
</section>
diff --git a/apps/web/src/components/plugins/PluginUpdateDialog.tsx b/apps/web/src/components/plugins/PluginUpdateDialog.tsx
index 20f69b91..9e09e870 100644
--- a/apps/web/src/components/plugins/PluginUpdateDialog.tsx
+++ b/apps/web/src/components/plugins/PluginUpdateDialog.tsx
@@ -31,7 +31,7 @@ export const PluginUpdateDialog = ({
<DialogTitle className="font-semibold text-slate-950">
{t("plugins.updates.confirmTitle", { name: update.latestManifest.name })}
</DialogTitle>
- <DialogDescription className="mt-1 flex items-center gap-2 text-sm text-slate-500">
+ <DialogDescription className="mt-1 flex items-center gap-2 text-xs leading-5 text-slate-500">
<span>v{update.currentVersion}</span>
<ArrowRight className="h-3.5 w-3.5" />
<span>v{update.latestVersion}</span>
@@ -40,7 +40,7 @@ export const PluginUpdateDialog = ({
</DialogHeader>
<div className="grid gap-3 px-5 py-4 text-sm">
- <p className="leading-6 text-slate-600">
+ <p className={`leading-6 text-slate-600 ${hasAddedAccess ? "text-sm" : "text-xs"}`}>
{hasAddedAccess ? t("plugins.updates.addedAccessDescription") : t("plugins.updates.confirmDescription")}
</p>
{update.addedPermissions.length > 0 ? (
diff --git a/apps/web/src/components/settings/AiModelCard.tsx b/apps/web/src/components/settings/AiModelCard.tsx
index b744646a..930beea4 100644
--- a/apps/web/src/components/settings/AiModelCard.tsx
+++ b/apps/web/src/components/settings/AiModelCard.tsx
@@ -136,7 +136,7 @@ export const AiModelCard = () => {
<CollapsibleContent asChild>
<CardContent className="grid gap-5 p-4 pt-0 sm:px-5 sm:pb-5">
{settingsQuery.isLoading ? (
- <p className="flex items-center gap-2 text-sm text-slate-500"><Loader2 className="h-4 w-4 animate-spin" />{t("common.loading")}</p>
+ <p className="flex items-center gap-2 text-xs leading-5 text-slate-500"><Loader2 className="h-4 w-4 animate-spin" />{t("common.loading")}</p>
) : (
<>
{!encryptionConfigured ? (
diff --git a/apps/web/src/components/settings/AiTagSuggestionPromptCard.tsx b/apps/web/src/components/settings/AiTagSuggestionPromptCard.tsx
index d8537a95..96d7c9b3 100644
--- a/apps/web/src/components/settings/AiTagSuggestionPromptCard.tsx
+++ b/apps/web/src/components/settings/AiTagSuggestionPromptCard.tsx
@@ -66,7 +66,7 @@ export const AiTagSuggestionPromptCard = () => {
<CollapsibleContent asChild>
<CardContent className="grid gap-3 px-4 pb-4 pt-0">
{settingsQuery.isLoading ? (
- <p className="flex items-center gap-2 text-sm text-slate-500">
+ <p className="flex items-center gap-2 text-xs leading-5 text-slate-500">
<Loader2 className="h-4 w-4 animate-spin" />{t("common.loading")}
</p>
) : (
diff --git a/apps/web/src/components/settings/DesktopLocalBackupCard.tsx b/apps/web/src/components/settings/DesktopLocalBackupCard.tsx
index ec602202..8eced802 100644
--- a/apps/web/src/components/settings/DesktopLocalBackupCard.tsx
+++ b/apps/web/src/components/settings/DesktopLocalBackupCard.tsx
@@ -60,7 +60,7 @@ export const DesktopLocalBackupCard = () => {
<CardContent className="grid gap-3 p-4 pt-0">
<CardDescription className="text-xs leading-5">{t("dataExport.desktopLocalDescription")}</CardDescription>
{backups.length > 0 ? (
- <select className="h-10 rounded-md border border-slate-200 bg-card px-3 text-sm text-slate-950 outline-none focus:border-slate-900 focus:ring-2 focus:ring-slate-900/10" value={selectedPath} disabled={state === "working"} onChange={(event) => setSelectedPath(event.target.value)}>
+ <select className="h-10 rounded-md border border-slate-200 bg-card px-3 text-xs leading-5 text-slate-950 outline-none focus:border-slate-900 focus:ring-2 focus:ring-slate-900/10" value={selectedPath} disabled={state === "working"} onChange={(event) => setSelectedPath(event.target.value)}>
{backups.map((backup) => <option key={backup.path} value={backup.path}>{backup.name} · {formatSize(backup.size)}</option>)}
</select>
) : <p className="text-xs text-slate-500">{state === "working" ? t("dataExport.desktopLocalRefreshing") : t("dataExport.desktopLocalEmpty")}</p>}
diff --git a/apps/web/src/components/settings/FeedbackLink.tsx b/apps/web/src/components/settings/FeedbackLink.tsx
index ade31312..a4ceaf16 100644
--- a/apps/web/src/components/settings/FeedbackLink.tsx
+++ b/apps/web/src/components/settings/FeedbackLink.tsx
@@ -34,7 +34,7 @@ export const FeedbackLink = ({ className }: { className?: string }) => {
return (
<a
className={cn(
- "flex min-h-16 w-full items-center justify-between gap-3 rounded-xl px-4 py-2.5 text-left text-sm font-semibold text-slate-600 transition-colors hover:bg-slate-200/50 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20",
+ "flex min-h-16 w-full items-center justify-between gap-3 rounded-xl px-4 py-2.5 text-left text-xs font-normal leading-5 text-slate-600 transition-colors hover:bg-slate-200/50 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20",
className
)}
href={href}
diff --git a/apps/web/src/components/settings/LoginDevicesCard.tsx b/apps/web/src/components/settings/LoginDevicesCard.tsx
index d521a70b..0061fa16 100644
--- a/apps/web/src/components/settings/LoginDevicesCard.tsx
+++ b/apps/web/src/components/settings/LoginDevicesCard.tsx
@@ -126,9 +126,9 @@ export const LoginDevicesCard = ({ authRequired, isLoggingOut, onLogout }: Login
</div>
</CardHeader>
<CardContent className="p-4 pt-0">
- {sessionsQuery.isLoading ? <p className="text-sm text-slate-500">{t("loginDevices.loading")}</p> : null}
- {sessionsQuery.isError ? <p className="text-sm font-medium text-rose-600" role="alert">{t("loginDevices.loadFailed")}</p> : null}
- {sessionsQuery.data?.sessions.length === 0 ? <p className="text-sm text-slate-500">{t("loginDevices.empty")}</p> : null}
+ {sessionsQuery.isLoading ? <p className="text-xs leading-5 text-slate-500">{t("loginDevices.loading")}</p> : null}
+ {sessionsQuery.isError ? <p className="text-xs font-medium leading-5 text-rose-600" role="alert">{t("loginDevices.loadFailed")}</p> : null}
+ {sessionsQuery.data?.sessions.length === 0 ? <p className="text-xs leading-5 text-slate-500">{t("loginDevices.empty")}</p> : null}
{sessionsQuery.data?.sessions.length ? (
<ul className="divide-y divide-slate-100">
{sessionsQuery.data.sessions.map((session) => {
diff --git a/apps/web/src/components/settings/LoginSessionRevokeDialog.tsx b/apps/web/src/components/settings/LoginSessionRevokeDialog.tsx
index 293f298a..4ab1195f 100644
--- a/apps/web/src/components/settings/LoginSessionRevokeDialog.tsx
+++ b/apps/web/src/components/settings/LoginSessionRevokeDialog.tsx
@@ -43,7 +43,7 @@ export const LoginSessionRevokeDialog = ({
{t(revokeOthers ? "loginDevices.revokeOthersDescription" : "loginDevices.revokeDeviceDescription")}
</DialogDescription>
</DialogHeader>
- {isError ? <p className="text-sm font-medium text-rose-600" role="alert">{t("loginDevices.revokeFailed")}</p> : null}
+ {isError ? <p className="text-xs font-medium leading-5 text-rose-600" role="alert">{t("loginDevices.revokeFailed")}</p> : null}
<DialogFooter>
<DialogClose asChild>
<Button variant="outline" disabled={isPending}>{t("common.cancel")}</Button>
diff --git a/apps/web/src/components/settings/ObjectStorageCard.tsx b/apps/web/src/components/settings/ObjectStorageCard.tsx
index 13cd85cf..3cd78ecf 100644
--- a/apps/web/src/components/settings/ObjectStorageCard.tsx
+++ b/apps/web/src/components/settings/ObjectStorageCard.tsx
@@ -98,7 +98,7 @@ export const ObjectStorageCard = ({ demoMode }: { demoMode: boolean }) => {
</CardHeader>
<CardContent className="p-4 pt-0 sm:px-5 sm:pb-5">
{settingsQuery.isLoading ? (
- <p className="flex items-center gap-2 text-sm text-slate-500"><Loader2 className="h-4 w-4 animate-spin" />{t("common.loading")}</p>
+ <p className="flex items-center gap-2 text-xs leading-5 text-slate-500"><Loader2 className="h-4 w-4 animate-spin" />{t("common.loading")}</p>
) : (
<form className="grid gap-5" onSubmit={submit}>
<div className="grid gap-2 sm:grid-cols-2">
diff --git a/apps/web/src/components/settings/PasswordCard.tsx b/apps/web/src/components/settings/PasswordCard.tsx
index 4e1dcd4e..a68db654 100644
--- a/apps/web/src/components/settings/PasswordCard.tsx
+++ b/apps/web/src/components/settings/PasswordCard.tsx
@@ -71,7 +71,7 @@ export const PasswordCard = ({ authRequired, demoMode }: PasswordCardProps) => {
</CardHeader>
<CardContent className="p-4 pt-0">
{demoMode ? (
- <p className="rounded-lg border border-amber-200 bg-amber-50 px-3 py-2 text-sm text-amber-900" role="status">
+ <p className="rounded-lg border border-amber-200 bg-amber-50 px-3 py-2 text-xs leading-5 text-amber-900" role="status">
{t("password.demoReadOnly")}
</p>
) : (
diff --git a/apps/web/src/components/settings/PluginManagerCard.tsx b/apps/web/src/components/settings/PluginManagerCard.tsx
index 1ad82a35..c31c147f 100644
--- a/apps/web/src/components/settings/PluginManagerCard.tsx
+++ b/apps/web/src/components/settings/PluginManagerCard.tsx
@@ -242,7 +242,7 @@ const PluginDetailView = ({
</section>
) : null}
- {extension.error ? <div className="text-sm text-rose-600">{extension.error}</div> : null}
+ {extension.error ? <div className="text-xs leading-5 text-rose-600">{extension.error}</div> : null}
<div className="flex flex-wrap items-center gap-2 border-t border-slate-100 pt-4">
{update ? (
@@ -483,7 +483,7 @@ export const PluginManagerCard = ({
})}
/>
) : (
- <div className="rounded-lg border border-dashed border-slate-200 p-8 text-center text-sm text-slate-500">
+ <div className="rounded-lg border border-dashed border-slate-200 p-8 text-center text-xs leading-5 text-slate-500">
{t("plugins.details.notFound")}
</div>
)
diff --git a/apps/web/src/components/settings/ProductHuntLink.tsx b/apps/web/src/components/settings/ProductHuntLink.tsx
index 4f43ccb2..3f248e18 100644
--- a/apps/web/src/components/settings/ProductHuntLink.tsx
+++ b/apps/web/src/components/settings/ProductHuntLink.tsx
@@ -20,7 +20,7 @@ export const ProductHuntLink = ({ className }: { className?: string }) => {
return (
<a
className={cn(
- "flex min-h-16 w-full items-center justify-between gap-3 rounded-xl px-4 py-2.5 text-left text-sm font-semibold text-slate-600 transition-colors hover:bg-slate-200/50 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20",
+ "flex min-h-16 w-full items-center justify-between gap-3 rounded-xl px-4 py-2.5 text-left text-xs font-normal leading-5 text-slate-600 transition-colors hover:bg-slate-200/50 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20",
className
)}
href={PRODUCT_HUNT_URL}
diff --git a/apps/web/src/components/settings/UserManagementCard.tsx b/apps/web/src/components/settings/UserManagementCard.tsx
index 701cf470..1918ff11 100644
--- a/apps/web/src/components/settings/UserManagementCard.tsx
+++ b/apps/web/src/components/settings/UserManagementCard.tsx
@@ -97,7 +97,7 @@ export const UserManagementCard = ({ demoMode }: UserManagementCardProps) => {
</div>
</CardHeader>
<CardContent className="grid gap-2 p-4 pt-0">
- {usersQuery.isLoading ? <p className="text-sm text-slate-500">{t("users.loading")}</p> : null}
+ {usersQuery.isLoading ? <p className="text-xs leading-5 text-slate-500">{t("users.loading")}</p> : null}
{usersQuery.data?.users.map((user) => (
<div key={user.id} className="flex flex-wrap items-center justify-between gap-3 rounded-lg border border-slate-200 bg-card/40 p-3">
<div className="min-w-0">
@@ -184,7 +184,7 @@ export const UserManagementCard = ({ demoMode }: UserManagementCardProps) => {
/>
<span className="text-xs font-normal text-slate-500">{t("users.passwordHint")}</span>
</label>
- {createMutation.isError ? <p className="text-sm font-medium text-rose-600" role="alert">{createError}</p> : null}
+ {createMutation.isError ? <p className="text-xs font-medium leading-5 text-rose-600" role="alert">{createError}</p> : null}
<DialogFooter className="mt-1 gap-2 sm:space-x-0">
<DialogClose asChild><Button type="button" variant="outline">{t("common.cancel")}</Button></DialogClose>
<Button type="submit" variant="solid" disabled={createMutation.isPending}>