Skip to content

Commit 8a750bb

Browse files
committed
chore: dev-demo dashboard switches columns by the width of the page content instead of the screen, so the open agent panel no longer squeezes four cards into one row AdminForth/2005
1 parent 0f10594 commit 8a750bb

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

‎dev-demo/custom/Dashboard.vue‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<template>
2-
<div class="flex flex-col gap-4 p-4">
2+
<!-- columns follow the width of the page content, not of the screen: the sidebar and the agent panel take part of it -->
3+
<div class="@container flex flex-col gap-4 p-4">
34
<div class="flex min-h-9 flex-wrap items-center justify-between gap-4">
45
<h1 class="text-xl font-semibold tracking-tight text-lightBreadcrumbsText dark:text-darkBreadcrumbsText">
56
{{ t('Dev demo dashboard') }}
@@ -15,7 +16,7 @@
1516
<Spinner v-if="isLoading" class="mx-auto my-24 h-8 w-8" />
1617

1718
<template v-else-if="dashboard">
18-
<div class="grid gap-4 sm:grid-cols-2 xl:grid-cols-4">
19+
<div class="grid grid-cols-1 gap-4 @md:grid-cols-2 @4xl:grid-cols-4">
1920
<Card
2021
v-for="card in summaryCards"
2122
:key="card.label"
@@ -28,10 +29,10 @@
2829
</Card>
2930
</div>
3031

31-
<div class="grid gap-4 xl:grid-cols-3">
32+
<div class="grid grid-cols-1 gap-4 @5xl:grid-cols-3">
3233
<Card
3334
size="md"
34-
class="xl:col-span-2"
35+
class="@5xl:col-span-2"
3536
:title="t('Cars by data source')"
3637
:description="t('Each source keeps its own fleet, so the dashboard compares total records, listed records, and average price side by side.')"
3738
>
@@ -78,7 +79,7 @@
7879

7980
<Card
8081
size="md"
81-
class="xl:col-span-2"
82+
class="@5xl:col-span-2"
8283
:title="t('Most common models')"
8384
:description="t('Top repeated model combinations across all seeded demo resources.')"
8485
>

0 commit comments

Comments
 (0)