Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix(ui): stop single dashboard cards from stretching to full width

Andras Bacsaiffc6f4017d83
diff --git a/resources/views/livewire/dashboard.blade.php b/resources/views/livewire/dashboard.blade.php
index b54bd6008b..617d8d4767 100644
--- a/resources/views/livewire/dashboard.blade.php
+++ b/resources/views/livewire/dashboard.blade.php
@@ -112,7 +112,7 @@
icon-name="projects" size="sm" />
@else
<div x-cloak x-show="viewMode === 'grid'"
- class="grid min-w-0 grid-cols-[repeat(auto-fit,minmax(min(17rem,100%),1fr))] gap-3">
+ class="grid min-w-0 grid-cols-1 gap-3 @lg:grid-cols-2 @4xl:grid-cols-4">
@foreach ($dashboardProjects as $project)
@php
$firstEnvironment = $project->environments->first();
@@ -315,7 +315,7 @@
@endif
@else
<div x-cloak x-show="viewMode === 'grid'"
- class="grid min-w-0 grid-cols-[repeat(auto-fit,minmax(min(17rem,100%),1fr))] gap-3">
+ class="grid min-w-0 grid-cols-1 gap-3 @lg:grid-cols-2 @4xl:grid-cols-4">
@foreach ($dashboardServers as $server)
@php
[$serverStatus, $serverStatusType] = $serverStatuses[$server->id];