@@ -108,7 +108,7 @@ export function ManageList({ data, listPath, userId, userEmail }) {
108
108
Add new items and share your list with other users
109
109
</ p >
110
110
</ div >
111
- < section className = "flex flex-col w-full" >
111
+ < section className = "flex flex-col w-full mb-8 " >
112
112
< div className = "flex flex-col" >
113
113
< form
114
114
method = "post"
@@ -127,12 +127,12 @@ export function ManageList({ data, listPath, userId, userEmail }) {
127
127
className = "grow shrink bg-lightGrey border border-darkPurple rounded-md shadow-lg px-4 py-2 placeholder:text-darkPurple mb-5"
128
128
onChange = { ( ) => setAddItemErrMessage ( '' ) }
129
129
> </ input >
130
- < div className = "flex flex-col sm:flex-row gap-4 text-base sm:text-2xl " >
130
+ < div className = "grid sm:grid-cols-3 grid-cols-1 grid-rows-2 sm:grid-rows-1 gap-y-4 sm:gap-x-2 text-base sm:text-lg " >
131
131
< select
132
132
name = "time"
133
133
id = "time-select "
134
134
aria-label = "When do you need this item?"
135
- className = "grow shrink bg-lightGrey text-base sm:text-lg border border-darkPurple rounded-md shadow-lg px-4 py-2 placeholder:text-darkPurple"
135
+ className = "col-span-3 sm:col-span-2 bg-lightGrey text-base sm:text-lg border border-darkPurple rounded-md shadow-lg px-4 py-2 placeholder:text-darkPurple"
136
136
>
137
137
< option value = "none" selected disabled hidden >
138
138
Choose item's likely need date
@@ -144,7 +144,7 @@ export function ManageList({ data, listPath, userId, userEmail }) {
144
144
</ select >
145
145
< button
146
146
type = "submit"
147
- className = "flex items-center text-base sm:text-lg justify-center shrink-0 gap-6 shadow-lg rounded-md bg-lightPurple hover:bg-hoverPurple text-offWhite transition ease-in-out px-4 py-2"
147
+ className = " col-span-3 sm:col-span-1 gap-6 flex items-center text-base sm:text-lg justify-center shadow-lg rounded-md bg-lightPurple hover:bg-hoverPurple text-offWhite transition ease-in-out px-4 py-2"
148
148
>
149
149
< span >
150
150
< i className = "fa-solid fa-plus" > </ i >
@@ -158,7 +158,7 @@ export function ManageList({ data, listPath, userId, userEmail }) {
158
158
) }
159
159
</ div >
160
160
</ section >
161
- < section className = "flex flex-col w-full my-20 " >
161
+ < section className = "flex flex-col w-full my-8 " >
162
162
< form
163
163
method = "post"
164
164
onSubmit = { sendInvite }
@@ -167,19 +167,19 @@ export function ManageList({ data, listPath, userId, userEmail }) {
167
167
< h2 className = "text-lg sm:text-xl text-left text-darkPurple border-solid border-darkPurple border-b pb-2 mb-8" >
168
168
SHARE THE LIST
169
169
</ h2 >
170
- < div className = "flex flex-col sm:flex-row gap-4 " >
170
+ < div className = "grid sm:grid-cols-3 grid-cols-1 grid-rows-2 sm:grid-rows-1 gap-y-4 sm:gap-x-2 text-base sm:text-lg " >
171
171
< input
172
172
aria-label = "Share the list"
173
173
type = "email"
174
174
name = "email"
175
175
id = "email"
176
176
placeholder = "Share this list with another user"
177
- className = "grow shrink bg-lightGrey border border-darkPurple rounded-md shadow-lg px-4 py-2 placeholder:text-darkPurple"
177
+ className = "col-span-3 sm:col-span-2 bg-lightGrey border border-darkPurple rounded-md shadow-lg px-4 py-2 placeholder:text-darkPurple"
178
178
onChange = { ( ) => setShareListErrMessage ( '' ) }
179
179
> </ input >
180
180
< button
181
181
type = "submit"
182
- className = "bg-lightGrey text-darkPurple border border-darkPurple flex justify-center items-center shadow-lg rounded-md transition ease-in-out hover:bg-hoverPurple hover:text-puurWhite px-4 py-2 gap-6 shrink-0"
182
+ className = "col-span-3 sm:col-span-1 flex bg-lightGrey text-darkPurple border border-darkPurple justify-center items-center shadow-lg rounded-md transition ease-in-out hover:bg-hoverPurple hover:text-puurWhite px-4 py-2 gap-6 shrink-0"
183
183
>
184
184
< span >
185
185
< i className = "fa-solid fa-share-nodes" > </ i >
0 commit comments