Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

fix: Adjust sizing btw select && inputs on xs, sm, md, lg, xl #97

Merged
merged 1 commit into from
Apr 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions src/components/extenders/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,36 +55,36 @@ export const selectStyles = tv({
},
size: {
xs: {
base: "text-xs",
value: "px-sm*2 py-xs*2",
base: "text-xs py-xs*2 rounded-xs",
value: "px-xs",
icon: "text-sm",
item: "px-md text-xs",
prefixLabel: "text-xs",
},
sm: {
base: "text-sm",
value: "px-md py-sm",
base: "text-sm px-sm py-sm rounded-sm",
value: "py-sm",
icon: "text-base",
item: "px-md text-sm",
prefixLabel: "text-sm",
},
md: {
base: "text-md",
base: "text-md rounded-md",
value: "px-md text-md py-md",
icon: "text-lg",
item: "px-md text-md",
prefixLabel: "text-sm",
},
lg: {
base: "text-lg",
value: "px-xl/2 py-lg",
base: "text-lg py-sm*2 rounded-lg",
value: "px-lg py-sm",
icon: "text-xl",
item: "px-lg text-lg",
prefixLabel: "text-base",
},
xl: {
base: "text-xl",
value: "px-sm*2 py-lg",
base: "text-3xl py-md*2 rounded-xl",
value: "px-lg py-xs",
icon: "text-xl",
item: "px-xl text-xl",
prefixLabel: "text-lg",
Expand Down
4 changes: 2 additions & 2 deletions src/components/primitives/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function Input({ look, size, state, inputClassName, className, ...props }: Input
</label>
)}
</label>
<Group>{error}</Group>
{!!error && <Group>{error}</Group>}
</Group>
);
return (
Expand All @@ -108,7 +108,7 @@ function Input({ look, size, state, inputClassName, className, ...props }: Input
onChange={e => state?.[1]?.(e?.target?.value)}
{...rest}
/>
<Group className="flex-col">{error}</Group>{" "}
{!!error && <Group className="flex-col">{error}</Group>}
</Group>
);
}
Expand Down
Loading