fix(gift): stretch my-gifts cards full-width instead of cramped 2-col grid

The 2-column grid inside the max-w-2xl container made each gift card a narrow ~330px half. Gift cards are content-rich (header, code, share preview, buttons), so stack them single-column full-width — they now stretch to the container width on every breakpoint.
This commit is contained in:
c0mrade
2026-06-01 14:11:50 +03:00
parent 7ca9c043dd
commit 50d7d21462

View File

@@ -1110,7 +1110,7 @@ function MyGiftsTabContent() {
<h2 className="mb-3 text-xs font-semibold uppercase tracking-wider text-dark-400">
{t('gift.activeGiftsTitle')}
</h2>
<div className="grid gap-3 sm:grid-cols-2">
<div className="space-y-3">
{activeGifts.map((gift) => (
<SentGiftCard key={gift.token} gift={gift} />
))}
@@ -1124,7 +1124,7 @@ function MyGiftsTabContent() {
<h2 className="mb-3 text-xs font-semibold uppercase tracking-wider text-dark-400">
{t('gift.activatedGiftsTitle')}
</h2>
<div className="grid gap-3 sm:grid-cols-2">
<div className="space-y-3">
{activatedGifts.map((gift) => (
<SentGiftCard key={gift.token} gift={gift} />
))}
@@ -1138,7 +1138,7 @@ function MyGiftsTabContent() {
<h2 className="mb-3 text-xs font-semibold uppercase tracking-wider text-dark-400">
{t('gift.receivedGiftsTitle')}
</h2>
<div className="grid gap-3 sm:grid-cols-2">
<div className="space-y-3">
{receivedGifts!.map((gift) => (
<ReceivedGiftCard key={gift.token} gift={gift} />
))}