ui개선
This commit is contained in:
@@ -18,11 +18,11 @@ export default function InputWidget({ widget, value, onChange, className }: Inpu
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={cn("space-y-2", className)}>
|
||||
<div className={cn("space-y-1.5", className)}>
|
||||
{widget.label && (
|
||||
<Label htmlFor={widget.id} className="text-sm font-medium">
|
||||
<Label htmlFor={widget.id} className="text-xs font-medium">
|
||||
{widget.label}
|
||||
{widget.required && <span className="ml-1 text-red-500">*</span>}
|
||||
{widget.required && <span className="text-destructive ml-0.5">*</span>}
|
||||
</Label>
|
||||
)}
|
||||
<Input
|
||||
@@ -33,7 +33,7 @@ export default function InputWidget({ widget, value, onChange, className }: Inpu
|
||||
onChange={handleChange}
|
||||
required={widget.required}
|
||||
readOnly={widget.readonly}
|
||||
className={cn("w-full", widget.readonly && "cursor-not-allowed bg-gray-50")}
|
||||
className={cn("h-9 w-full text-sm", widget.readonly && "bg-muted/50 cursor-not-allowed")}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user