mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
chore: update Collapse styling
This commit is contained in:
@@ -70,6 +70,7 @@ export const Collapse = ({
|
|||||||
variant === 'plus' && 'collapse-plus',
|
variant === 'plus' && 'collapse-plus',
|
||||||
bordered && 'border base-content/20 border-opacity-20 rounded-box',
|
bordered && 'border base-content/20 border-opacity-20 rounded-box',
|
||||||
disabled && 'opacity-60 pointer-events-none',
|
disabled && 'opacity-60 pointer-events-none',
|
||||||
|
!open && 'w-fit',
|
||||||
className
|
className
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -82,7 +83,7 @@ export const Collapse = ({
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return <div>{title}</div>;
|
return title;
|
||||||
}, [title, subtitle]);
|
}, [title, subtitle]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -102,7 +103,7 @@ export const Collapse = ({
|
|||||||
role='button'
|
role='button'
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
className={cn(
|
className={cn(
|
||||||
'collapse-title p-0',
|
'collapse-title w-fit p-0',
|
||||||
'focus:outline-none focus-visible:ring focus-visible:ring-primary/40',
|
'focus:outline-none focus-visible:ring focus-visible:ring-primary/40',
|
||||||
titleClassName
|
titleClassName
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user