fix(ui): stop CJK labels clipping under tight line-height

Chinese glyphs (PingFang etc.) paint outside a 1.0 em box, so leading-none
plus truncate was slicing vault tree, tabs, and dialog titles. Use safer
line-heights and slightly taller note title inputs.
This commit is contained in:
bincxz
2026-07-31 14:21:05 +08:00
parent f5fd601334
commit 7a2a1992f2
16 changed files with 54 additions and 35 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ export const ScriptEditorModal: React.FC<ScriptEditorModalProps> = ({
<div className="h-full flex flex-col min-h-0">
<div className="h-9 px-3 py-1.5 border-b border-border/60 flex-shrink-0">
<div className="flex h-full items-center justify-between gap-3">
<span className="text-sm font-semibold leading-none truncate">{title}</span>
<span className="truncate text-sm font-semibold leading-5">{title}</span>
<div className="flex h-6 items-center gap-1.5">
<Button
variant="outline"