[WIKI-573] regression: comment card padding #7512

This commit is contained in:
Aaryan Khandelwal
2025-07-30 15:02:55 +05:30
committed by GitHub
parent 6e1734c86e
commit ce08c9193c

View File

@@ -89,7 +89,13 @@ export const LiteTextEditor = React.forwardRef<EditorRefApi, LiteTextEditorWrapp
return (
<div
className={cn("relative border border-custom-border-200 rounded p-3", parentClassName)}
className={cn(
"relative border border-custom-border-200 rounded",
{
"p-3": editable,
},
parentClassName
)}
onFocus={() => !showToolbarInitially && setIsFocused(true)}
onBlur={() => !showToolbarInitially && setIsFocused(false)}
>
@@ -116,7 +122,9 @@ export const LiteTextEditor = React.forwardRef<EditorRefApi, LiteTextEditorWrapp
}),
}}
placeholder={placeholder}
containerClassName={cn(containerClassName, "relative")}
containerClassName={cn(containerClassName, "relative", {
"p-2": !editable,
})}
{...rest}
/>
{showToolbar && editable && (