fix(web): ui

This commit is contained in:
zhaoying
2026-04-17 11:58:24 +08:00
parent 5a17b7fd0d
commit b8123fc84c
3 changed files with 4 additions and 4 deletions

View File

@@ -103,8 +103,8 @@ const Editor: FC<LexicalEditorProps> =({
// Calculate line height based on size prop
const lineHeight = useMemo(() => {
return `${height ? height - 10 : size === 'small' && ['borderless', 'filled'].includes(variant) ? 18 : size === 'small' ? 16 : 20}px`
}, [size])
return `${height ? height - 10 : size === 'small' && variant === 'borderless' ? 18 : size === 'small' ? 16 : 20}px`
}, [size, height, variant])
// Calculate placeholder minimum height
const placeHolderMinheight = useMemo(() => {