chore: update Collapse styling

This commit is contained in:
ValdiANS
2025-10-02 11:46:09 +07:00
parent ca9205618a
commit d40a5dd898
+3 -2
View File
@@ -70,6 +70,7 @@ export const Collapse = ({
variant === 'plus' && 'collapse-plus',
bordered && 'border base-content/20 border-opacity-20 rounded-box',
disabled && 'opacity-60 pointer-events-none',
!open && 'w-fit',
className
);
@@ -82,7 +83,7 @@ export const Collapse = ({
</div>
);
}
return <div>{title}</div>;
return title;
}, [title, subtitle]);
return (
@@ -102,7 +103,7 @@ export const Collapse = ({
role='button'
tabIndex={0}
className={cn(
'collapse-title p-0',
'collapse-title w-fit p-0',
'focus:outline-none focus-visible:ring focus-visible:ring-primary/40',
titleClassName
)}