diff --git a/app/Views/Components/DashboardCard.php b/app/Views/Components/DashboardCard.php index 474022378c02b86a82bf6d5663376471da66a899..573d4955cd00e368c8d0530bd34434cfc3f06f31 100644 --- a/app/Views/Components/DashboardCard.php +++ b/app/Views/Components/DashboardCard.php @@ -29,17 +29,17 @@ class DashboardCard extends Component $chevronRight = icon('chevron-right'); $viewLang = lang('Common.view'); return <<<HTML - <a href="{$this->href}" class="flex items-center justify-between w-full max-w-sm p-4 bg-elevated focus:ring-accent rounded-xl border-3 border-subtle group"> + <a href="{$this->href}" class="flex items-center justify-between w-full gap-4 p-4 lg:max-w-sm lg:flex-col xl:flex-row bg-elevated focus:ring-accent rounded-xl border-3 border-subtle group"> <div class="flex items-start">{$glyph}<div class="flex flex-col ml-2"><div class="flex items-center"><span class="text-xs font-semibold leading-loose tracking-wider uppercase">{$this->title}</span><div class="inline-flex items-center ml-4 transition -translate-x-full group-hover:translate-x-0 group-focus:translate-x-0"><span class="-ml-2 text-xs lowercase transition opacity-0 group-hover:opacity-100 group-focus:opacity-100">{$viewLang}</span>{$chevronRight}</div></div><p class="text-xs">{$this->subtitle}</p></div></div> - <div class="mx-2 text-5xl font-bold">{$this->slot}</div> + <div class="text-5xl font-bold">{$this->slot}</div> </a> HTML; } return <<<HTML - <div class="flex items-center justify-between w-full max-w-sm p-4 bg-elevated rounded-xl border-3 border-subtle"> + <div class="flex items-center justify-between w-full gap-4 p-4 lg:max-w-sm lg:flex-col xl:flex-row bg-elevated rounded-xl border-3 border-subtle"> <div class="flex items-start">{$glyph}<div class="flex flex-col ml-2"><span class="text-xs font-semibold leading-loose tracking-wider uppercase">{$this->title}</span><p class="text-xs">{$this->subtitle}</p></div></div> - <div class="mx-2 text-5xl font-bold">{$this->slot}</div> + <div class="text-5xl font-bold">{$this->slot}</div> </div> HTML; } diff --git a/themes/cp_admin/dashboard.php b/themes/cp_admin/dashboard.php index e3f6222cbbed972eaf1d501f7f8d06b510e79e78..c47fa597c9daa454b73a666a59fff416e5036e1f 100644 --- a/themes/cp_admin/dashboard.php +++ b/themes/cp_admin/dashboard.php @@ -11,7 +11,7 @@ <?= $this->section('content') ?> -<div class="flex flex-wrap items-start gap-4"> +<div class="flex flex-col items-stretch gap-4 lg:flex-row"> <DashboardCard href="<?= $onlyPodcastId === null ? route_to('podcast-list') : route_to('podcast-view', $onlyPodcastId) ?>" glyph="mic" title="<?= lang('Dashboard.podcasts.title') ?>" subtitle="<?= $podcastsData['last_published_at'] ? esc(lang('Dashboard.podcasts.last_published', [ 'lastPublicationDate' => local_date($podcastsData['last_published_at']), ], null, false)) : lang('Dashboard.podcasts.not_found') ?>"><?= $podcastsData['number_of_podcasts'] ?></DashboardCard>