mirror of
https://github.com/snowball-tools/snowballtools-base.git
synced 2024-12-22 20:47:44 +00:00
🎨 style: make the input width to full
This commit is contained in:
parent
e0c5895e9c
commit
6db5871868
@ -8,6 +8,8 @@ export const inputTheme = tv(
|
||||
'items-center',
|
||||
'rounded-lg',
|
||||
'relative',
|
||||
'gap-2',
|
||||
'w-full',
|
||||
'placeholder:text-elements-disabled',
|
||||
'disabled:cursor-not-allowed',
|
||||
'disabled:bg-controls-disabled',
|
||||
@ -27,7 +29,7 @@ export const inputTheme = tv(
|
||||
'disabled:shadow-none',
|
||||
'disabled:border-none',
|
||||
],
|
||||
icon: ['text-elements-mid-em'],
|
||||
icon: ['text-elements-low-em'],
|
||||
iconContainer: [
|
||||
'absolute',
|
||||
'inset-y-0',
|
||||
|
@ -87,12 +87,12 @@ export const Input = ({
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="space-y-2">
|
||||
<div className="flex flex-col gap-2 w-full">
|
||||
{renderLabels}
|
||||
<div className={containerCls({ class: className })}>
|
||||
{leftIcon && renderLeftIcon}
|
||||
<input
|
||||
className={cn(inputCls({ class: 'w-80' }), {
|
||||
className={cn(inputCls(), {
|
||||
'pl-10': leftIcon,
|
||||
})}
|
||||
{...props}
|
||||
|
Loading…
Reference in New Issue
Block a user