mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user