Skip to content

Commit

Permalink
Merge pull request #525 from fairDataSociety/fix/invite-buttons
Browse files Browse the repository at this point in the history
fix: upgraded mobile UI for invite section
  • Loading branch information
IgorShadurin authored Sep 25, 2023
2 parents 1c03e65 + 4b4cc90 commit 1d49966
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/components/Invite/Invite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,11 @@ const Invite: FC<InviteProps> = () => {
</CustomCheckbox>
</div>

<div className="w-full step-create mt-8">
<div className="w-full step-create mt-8 md:pr-4">
<Button
disabled={loading}
className="w-full lg:w-auto"
centerText={true}
variant="primary-outlined"
label={intl.get('CREATE_INVITE')}
onClick={onCreateInvite}
Expand All @@ -155,7 +157,7 @@ const Invite: FC<InviteProps> = () => {
<div className="font-semibold text-l text-color-accents-plum-black dark:text-color-shade-white-night">
{intl.get('TO_INVITE_QUESTION')}
</div>
<div className="step-fill sm:mx-5 mx-0">
<div className="step-fill sm:mr-4 mx-0">
<form onSubmit={handleSubmit(onSaveInviteName)}>
<AuthenticationInput
id="name"
Expand All @@ -175,7 +177,7 @@ const Invite: FC<InviteProps> = () => {

<div className="mt-5 flex sm:justify-start justify-between">
<Button
className="w-24 mr-4 mb-2"
className="mr-4 mb-2 w-full lg:w-24"
disabled={loading}
variant="secondary"
centerText={true}
Expand All @@ -184,7 +186,7 @@ const Invite: FC<InviteProps> = () => {
/>

<Button
className="w-24 mb-2"
className="mb-2 w-full lg:w-24"
disabled={loading}
variant="primary-outlined"
centerText={true}
Expand Down Expand Up @@ -226,9 +228,9 @@ const Invite: FC<InviteProps> = () => {
/>
</div>

<div className="create-again flex flex-wrap justify-between mt-6 pr-4">
<div className="create-again flex flex-wrap justify-between mt-6 lg:pr-4">
<Button
className="primary-outlined w-60 mb-2 shrink-0 grow-0"
className="primary-outlined w-full lg:w-60 mb-2 shrink-0 grow-0 md:mr-4"
disabled={loading}
variant="primary"
centerText={true}
Expand All @@ -237,7 +239,7 @@ const Invite: FC<InviteProps> = () => {
/>

<Button
className="primary-outlined w-60 mb-2 shrink-0 grow-0"
className="primary-outlined w-full lg:w-60 mb-2 shrink-0 grow-0 md:mr-4 lg:mr-0"
disabled={loading}
variant="primary-outlined"
centerText={true}
Expand Down

0 comments on commit 1d49966

Please sign in to comment.