Skip to content

Commit

Permalink
Merge pull request #366 from captableinc/fix/misalignment
Browse files Browse the repository at this point in the history
fix: company form misalignment in xs-sm screen
  • Loading branch information
dahal authored May 31, 2024
2 parents 111bcc6 + 59682e1 commit b000aac
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/onboarding/company-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const CompanyForm = ({ type, data }: CompanyFormProps) => {
return (
<Form {...form}>
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-8">
<div className="col-span-full flex items-center gap-x-8">
<div className="col-span-full space-y-2 flex flex-col sm:flex-row items-center gap-x-3 sm:gap-x-8">
<Avatar className="h-20 w-20 rounded">
<AvatarImage src={imageUrl || "/placeholders/company.svg"} />
</Avatar>
Expand Down Expand Up @@ -223,7 +223,7 @@ export const CompanyForm = ({ type, data }: CompanyFormProps) => {
<div className="grid gap-2">
<div className="grid gap-5">
{type === "onboarding" && (
<div className="grid grid-cols-2 gap-4">
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
<FormField
control={form.control}
name="user.name"
Expand Down Expand Up @@ -254,7 +254,7 @@ export const CompanyForm = ({ type, data }: CompanyFormProps) => {
</div>
)}

<div className="grid grid-cols-3 gap-4">
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4">
<FormField
control={form.control}
name="company.name"
Expand Down Expand Up @@ -307,7 +307,7 @@ export const CompanyForm = ({ type, data }: CompanyFormProps) => {
Please provide your company{`'`}s address.
</p>

<div className="grid grid-cols-2 gap-4">
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
<FormField
control={form.control}
name="company.streetAddress"
Expand Down Expand Up @@ -337,7 +337,7 @@ export const CompanyForm = ({ type, data }: CompanyFormProps) => {
/>
</div>

<div className="grid grid-cols-3 gap-4">
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4">
<FormField
control={form.control}
name="company.state"
Expand Down Expand Up @@ -402,7 +402,7 @@ export const CompanyForm = ({ type, data }: CompanyFormProps) => {
certificate of incorporation will come in handy here.
</p>

<div className="grid grid-cols-2 gap-4">
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
<FormField
control={form.control}
name="company.incorporationType"
Expand Down Expand Up @@ -450,7 +450,7 @@ export const CompanyForm = ({ type, data }: CompanyFormProps) => {
/>
</div>

<div className="grid grid-cols-2 gap-4">
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
<FormField
control={form.control}
name="company.incorporationCountry"
Expand Down

0 comments on commit b000aac

Please sign in to comment.