mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-18 03:54:17 +02:00
Unified printer card layout
This commit is contained in:
@@ -257,20 +257,12 @@ function PrinterCard({ printer, hideIfDisconnected }: { printer: Printer; hideIf
|
||||
{/* Status */}
|
||||
{status?.connected && (
|
||||
<>
|
||||
{/* Printer State */}
|
||||
<div className="mb-4">
|
||||
<p className="text-sm text-bambu-gray mb-1">Status</p>
|
||||
<p className="text-white font-medium capitalize">
|
||||
{status.state?.toLowerCase() || 'Idle'}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Current Print or Idle Placeholder */}
|
||||
<div className="mb-4 p-3 bg-bambu-dark rounded-lg">
|
||||
<div className="flex gap-3">
|
||||
{/* Cover Image */}
|
||||
<CoverImage
|
||||
url={status.state === 'RUNNING' ? status.cover_url : undefined}
|
||||
url={status.state === 'RUNNING' ? status.cover_url : null}
|
||||
printName={status.state === 'RUNNING' ? (status.subtask_name || status.current_print || undefined) : undefined}
|
||||
/>
|
||||
{/* Print Info */}
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -7,7 +7,7 @@
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png" />
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png" />
|
||||
<script type="module" crossorigin src="/assets/index-CzQ_ZlhY.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-0UYIv_0v.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-LyIdyh0d.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user