style: update class names for improved consistency in text editor and switch components

This commit is contained in:
Ardeman
2025-03-06 09:01:26 +08:00
parent 32b435d762
commit d27c068f39
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -122,7 +122,7 @@ export const TextEditor = <TFormValues extends Record<string, unknown>>(
disabled={disabled}
/>
) : (
<div className={twMerge('', className)}>
<div className={twMerge('rounded-md', className)}>
<EditorMenuBar
disabled={disabled}
category={category}
@@ -134,7 +134,7 @@ export const TextEditor = <TFormValues extends Record<string, unknown>>(
editor={editor}
id={id ?? generatedId}
className={twMerge(
'prose prose-headings:my-0 prose-p:my-0 max-h-96 max-w-none cursor-text overflow-y-auto rounded-[0_0_5px_5px] border border-[#D2D2D2] p-2',
'prose prose-headings:my-0 prose-p:my-0 max-h-96 max-w-none cursor-text overflow-y-auto rounded-b-md p-2',
inputClassName,
)}
onClick={() => editor?.commands.focus()}