fix(subscriptions): fill the orphan card so a lone subscription has no empty cell

The My Subscriptions list is a 2-col grid on sm+, so a single subscription (e.g. one tariff in multi-tariff mode) left an empty cell. Stretch the last card to span both columns when it's the lone one in its row — same orphan-fill used for the news grid and admin stat cards.
This commit is contained in:
c0mrade
2026-06-01 18:19:57 +03:00
parent bc8503469d
commit 484c3ad005

View File

@@ -165,7 +165,7 @@ export default function Subscriptions() {
{/* Subscription grid */}
{subscriptions.length > 0 && (
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2">
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 sm:[&>*:last-child:nth-child(odd)]:col-span-2">
{subscriptions.map((sub) => (
<SubscriptionListCard
key={sub.id}