@@ -35,7 +35,7 @@ export function VerifyEmailPanel() {
3535 } ;
3636
3737 return (
38- < div id = "verify" className = "card mt-5 p-6" >
38+ < div id = "verify" className = "card mt-5 p-4 sm:p- 6" >
3939 < div className = "flex items-center gap-2" >
4040 < span className = "flex h-7 w-7 items-center justify-center rounded-md border border-purple/40 text-purple" >
4141 ✉
@@ -54,19 +54,19 @@ export function VerifyEmailPanel() {
5454 < p className = "mt-4 text-sm text-purple" > Check your inbox — click the link to verify.</ p >
5555 ) : (
5656 < form onSubmit = { sendMagicLink } className = "mt-5 flex max-w-md flex-col gap-2" >
57- < div className = "flex gap-2" >
57+ < div className = "flex flex-col gap-2 sm:flex-row sm:items-stretch " >
5858 < input
5959 type = "email"
6060 required
6161 value = { email }
6262 onChange = { ( e ) => setEmail ( e . target . value ) }
6363 placeholder = "you@email.com"
64- className = "flex-1 rounded-xl border border-white/10 bg-black/30 px-4 py-3 text-sm outline-none placeholder:text-muted/50 focus:border-purple/50"
64+ className = "min-w-0 flex-1 rounded-xl border border-white/10 bg-black/30 px-4 py-3 text-sm outline-none placeholder:text-muted/50 focus:border-purple/50"
6565 />
6666 < button
6767 type = "submit"
6868 disabled = { sendMagic . isPending }
69- className = "btn-ghost shrink-0 whitespace-nowrap border-purple/40 px-4 py-3 text-sm text-purple"
69+ className = "btn-ghost w-full shrink-0 whitespace-nowrap border-purple/40 px-4 py-3 text-sm text-purple sm:w-auto "
7070 >
7171 { sendMagic . isPending ? "Sending…" : "Send link" }
7272 </ button >
@@ -157,7 +157,7 @@ export function LinkDevicesPanel({ nodeCode }: { nodeCode: string }) {
157157 } , [ session ?. url ] ) ;
158158
159159 return (
160- < div id = "devices" className = "card mt-5 p-6" >
160+ < div id = "devices" className = "card mt-5 p-4 sm:p- 6" >
161161 < div className = "flex items-center gap-2" >
162162 < span className = "flex h-7 w-7 items-center justify-center rounded-md border border-blue/40 text-blue" >
163163 ⇄
@@ -183,8 +183,8 @@ export function LinkDevicesPanel({ nodeCode }: { nodeCode: string }) {
183183 </ p >
184184 ) }
185185
186- < div className = "mt-6 grid gap-5 lg:grid-cols-2" >
187- < div className = "rounded-xl border border-white/10 bg-black/20 p-5" >
186+ < div className = "mt-6 grid min-w-0 gap-5 lg:grid-cols-2" >
187+ < div className = "min-w-0 rounded-xl border border-white/10 bg-black/20 p-4 sm: p-5" >
188188 < div className = "label text-blue" > On this device</ div >
189189 < p className = "mt-2 text-sm text-muted" > Generate a code for your other device to enter.</ p >
190190 { session ? (
@@ -219,15 +219,15 @@ export function LinkDevicesPanel({ nodeCode }: { nodeCode: string }) {
219219 ) }
220220 </ div >
221221
222- < div className = "rounded-xl border border-dashed border-white/10 bg-black/10 p-5" >
222+ < div className = "min-w-0 rounded-xl border border-dashed border-white/10 bg-black/10 p-4 sm: p-5" >
223223 < div className = "label" > On your other device</ div >
224224 < p className = "mt-2 text-sm text-muted" > Enter the code from your desktop or scan its QR.</ p >
225225 < form
226226 onSubmit = { ( e ) => {
227227 e . preventDefault ( ) ;
228228 void acceptCode ( enterCode ) ;
229229 } }
230- className = "mt-3 flex gap-2"
230+ className = "mt-3 flex flex-col gap-2 sm:flex-row sm:items-stretch "
231231 >
232232 < input
233233 type = "text"
@@ -242,12 +242,12 @@ export function LinkDevicesPanel({ nodeCode }: { nodeCode: string }) {
242242 )
243243 }
244244 placeholder = "6-char code"
245- className = "flex-1 rounded-xl border border-white/10 bg-black/30 px-4 py-3 font-mono text-sm tracking-widest outline-none placeholder:text-muted/50 focus:border-blue/50"
245+ className = "min-w-0 flex-1 rounded-xl border border-white/10 bg-black/30 px-4 py-3 font-mono text-sm tracking-widest outline-none placeholder:text-muted/50 focus:border-blue/50"
246246 />
247247 < button
248248 type = "submit"
249249 disabled = { loading || enterCode . length !== 6 }
250- className = "btn-ghost shrink-0 border-blue/40 px-4 py-3 text-sm text-blue"
250+ className = "btn-ghost w-full shrink-0 border-blue/40 px-4 py-3 text-sm text-blue sm:w-auto "
251251 >
252252 Link
253253 </ button >
@@ -268,7 +268,7 @@ export function LinkDevicesPanel({ nodeCode }: { nodeCode: string }) {
268268 Unlink this device
269269 </ button >
270270 ) : (
271- < div className = "rounded-xl border border-amber-500/30 bg-amber-500/5 p-5" >
271+ < div className = "rounded-xl border border-amber-500/30 bg-amber-500/5 p-4 sm:p- 5" >
272272 < h4 className = "text-sm font-semibold text-amber-200" > Unlink this device?</ h4 >
273273 < ul className = "mt-3 space-y-2 text-sm leading-relaxed text-muted" >
274274 < li >
0 commit comments