Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Fix dashboard layout on wide screens and remove wasted whitespace #643

[email protected]9a86fef1dc17
diff --git a/frontend-modern/src/components/Dashboard/Dashboard.tsx b/frontend-modern/src/components/Dashboard/Dashboard.tsx
index 7bbdcff243..eda36d7067 100644
--- a/frontend-modern/src/components/Dashboard/Dashboard.tsx
+++ b/frontend-modern/src/components/Dashboard/Dashboard.tsx
@@ -932,7 +932,7 @@ export function Dashboard(props: DashboardProps) {
<thead>
<tr class="bg-gray-50 dark:bg-gray-700/50 text-gray-600 dark:text-gray-300 border-b border-gray-200 dark:border-gray-600">
<th
- class="pl-4 pr-2 py-1 text-left text-[11px] sm:text-xs font-medium uppercase tracking-wider w-[140px] sm:w-[160px] lg:w-[180px] xl:w-[240px] 2xl:w-[380px] cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500"
+ class="pl-4 pr-2 py-1 text-left text-[11px] sm:text-xs font-medium uppercase tracking-wider cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500"
onClick={() => handleSort('name')}
onKeyDown={(e) => e.key === 'Enter' && handleSort('name')}
tabindex="0"
diff --git a/frontend-modern/src/index.css b/frontend-modern/src/index.css
index 07a4cec72b..a4edab1ca0 100644
--- a/frontend-modern/src/index.css
+++ b/frontend-modern/src/index.css
@@ -126,9 +126,9 @@
@layer components {
.pulse-shell {
width: 100%;
- max-width: clamp(95rem, 92vw, 120rem);
+ max-width: 100%;
margin-inline: auto;
- padding-inline: clamp(1rem, 3vw, 3.25rem);
+ padding-inline: clamp(1rem, 1.5vw, 2rem);
transition: padding-inline 0.3s ease;
}