Skip to content

Commit

Permalink
fix: apply friend form in mobile
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Feb 22, 2024
1 parent 9efdf29 commit 348560a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/(app)/friends/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ type FriendSectionProps = {

const FriendSection: FC<FriendSectionProps> = ({ data }) => {
return (
<section className="grid grid-cols-1 gap-6 md:grid-cols-2 2xl:grid-cols-3">
<section className="grid grid-cols-2 gap-6 md:grid-cols-3 2xl:grid-cols-3">
{data.map((link) => {
return (
<BottomToUpTransitionView key={link.id} duration={50}>
Expand Down Expand Up @@ -399,7 +399,10 @@ const FormModal = () => {
[state],
)
return (
<Form className="w-[300px] space-y-4 text-center" onSubmit={handleSubmit}>
<Form
className="w-full space-y-4 text-center lg:w-[300px]"
onSubmit={handleSubmit}
>
{inputs.map((input) => (
<FormInput
key={input.name}
Expand Down

0 comments on commit 348560a

Please sign in to comment.