Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed the spacing of Textarea.tsx to 3 to match input.tsx #70

Merged
merged 3 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
4 changes: 2 additions & 2 deletions src/components/global/inputs/radio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ const Radio = ({ meta }: { meta: RadioInput }) => {
<RadioGroup
defaultValue=""
value={String(selected)}
className="flex flex-row space-x-4"
className="flex flex-row space-x-3"
>
{options.map((option) => (
<div
key={option}
className={`flex items-center space-x-2 rounded-sm border py-1 pl-2 pr-4 hover:bg-starlight-blue hover:text-white ${selected === String(option) ? "bg-starlight-blue text-white" : "bg-white"}`}
className={`flex items-center space-x-3 rounded-sm border py-3 pl-3 pr-3 hover:bg-starlight-blue hover:text-white ${selected === String(option) ? "bg-starlight-blue text-white" : "bg-white"}`}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert these, these are fine.

but you need to add space between title and the radio groups.

onClick={() => setSelected(String(option))}
>
<RadioGroupItem
Expand Down
2 changes: 1 addition & 1 deletion src/components/global/inputs/textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Textarea as ShadCNTextarea } from "@/components/ui/textarea";
const Textarea = ({ meta }: { meta: TextareaInput }) => {
const { title, placeholder } = meta;
return (
<div className="grid w-full gap-1.5">
<div className="grid w-full gap-3">
<Label htmlFor={title}>{title}</Label>
<ShadCNTextarea placeholder={placeholder} id={title} />
</div>
Expand Down
Loading