forked from cerc-io/snowballtools-base
🔧 chore: add flex to Input and Select
This commit is contained in:
parent
e9d38e0d3b
commit
596d8eb326
@ -87,7 +87,7 @@ export const Input = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="gap-y-2">
|
<div className="flex flex-col gap-y-2">
|
||||||
{renderLabels}
|
{renderLabels}
|
||||||
<div className={containerCls({ class: className })}>
|
<div className={containerCls({ class: className })}>
|
||||||
{leftIcon && renderLeftIcon}
|
{leftIcon && renderLeftIcon}
|
||||||
|
@ -287,7 +287,7 @@ export const Select = ({
|
|||||||
const renderLabels = useMemo(() => {
|
const renderLabels = useMemo(() => {
|
||||||
if (!label && !description) return null;
|
if (!label && !description) return null;
|
||||||
return (
|
return (
|
||||||
<div className="gap-y-1">
|
<div className="flex flex-col gap-y-1">
|
||||||
<p className={theme.label()}>{label}</p>
|
<p className={theme.label()}>{label}</p>
|
||||||
<p className={theme.description()}>{description}</p>
|
<p className={theme.description()}>{description}</p>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user