Skip to content

Commit b6f1068

Browse files
Juligsmarc2332
andauthored
fix(dapp): fix purchase card layout on mobile (#1060)
* dapp(fix): fix purchase card on mobile * dapp(fix): fix typo * dapp(chore): remove unnecessary gap --------- Co-authored-by: Marc Espin <mespinsanz@gmail.com>
1 parent bee13b8 commit b6f1068

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dapp/src/components/name-purchase-card/NamePurchaseCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function NamePurchaseCard({
6969
{nameWithOutAt}
7070
</h2>
7171
</div>
72-
<div className="flex justify-between space-x-4 h-auto w-full">
72+
<div className="flex flex-col sm:flex-row sm:justify-between sm:space-x-4 h-auto w-full">
7373
<div className="flex flex-row gap-2 text-body-md items-center min-h-12">
7474
<div
7575
className={clsx('text-body-md capitalize', textColorStatus)}
@@ -93,7 +93,7 @@ export function NamePurchaseCard({
9393
</p>
9494
)}
9595
</div>
96-
<div className="flex flex-row gap-md">
96+
<div className="flex flex-wrap sm:flex-row gap-md">
9797
{priceNanos && (
9898
<div className="flex flex-col items-start">
9999
<div className="flex items-baseline gap-md">
@@ -116,7 +116,7 @@ export function NamePurchaseCard({
116116
)}
117117
</div>
118118
)}
119-
<div className="flex w-0 group-hover:w-auto whitespace-nowrap overflow-hidden">
119+
<div className="flex flex-col sm:flex-row w-0 group-hover:w-auto whitespace-nowrap overflow-hidden">
120120
{children}
121121
</div>
122122
</div>

0 commit comments

Comments
 (0)