From d27c068f39b3905b3967ec14020cada9af8db794 Mon Sep 17 00:00:00 2001 From: Ardeman Date: Thu, 6 Mar 2025 09:01:26 +0800 Subject: [PATCH] style: update class names for improved consistency in text editor and switch components --- app/components/text-editor/editor-menubar.tsx | 2 +- app/components/text-editor/index.tsx | 4 ++-- app/components/ui/switch.tsx | 4 ++-- app/pages/contents-create/index.tsx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/components/text-editor/editor-menubar.tsx b/app/components/text-editor/editor-menubar.tsx index cf3c540..8e3c31b 100644 --- a/app/components/text-editor/editor-menubar.tsx +++ b/app/components/text-editor/editor-menubar.tsx @@ -110,7 +110,7 @@ export const EditorMenuBar = (properties: TProperties) => { return ( <> -
+
>( disabled={disabled} /> ) : ( -
+
>( 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()} diff --git a/app/components/ui/switch.tsx b/app/components/ui/switch.tsx index c79df4c..da7aaaa 100644 --- a/app/components/ui/switch.tsx +++ b/app/components/ui/switch.tsx @@ -56,7 +56,7 @@ export const Switch = >( control={control} rules={rules} render={({ field }) => ( -
+
{ @@ -64,7 +64,7 @@ export const Switch = >( }} className={twMerge( 'group relative flex h-7 w-14 cursor-pointer rounded-full bg-[#2E2F7C]/10 p-1 shadow transition-colors duration-200 ease-in-out focus:outline-none data-[checked]:bg-[#2E2F7C]/90 data-[focus]:outline-1 data-[focus]:outline-white', - className, + inputClassName, )} > { name="is_premium" label="Premium" labelClassName="text-sm font-medium text-[#363636]" - inputClassName="h-[42px]" + className="h-[42px]" />