This commit is contained in:
maziggy
2025-12-07 14:29:54 +00:00
parent 53e196c38f
commit e688c35719
18 changed files with 1630 additions and 631 deletions
+10 -13
View File
@@ -35,11 +35,14 @@ export function PrinterQueueWidget({ printerId }: PrinterQueueWidgetProps) {
}
return (
<div className="mt-3 p-2 bg-bambu-dark rounded-lg">
<div className="flex items-center justify-between">
<div className="flex items-center gap-2 min-w-0">
<Calendar className="w-4 h-4 text-yellow-400 flex-shrink-0" />
<div className="min-w-0">
<Link
to="/queue"
className="block mb-3 p-3 bg-bambu-dark rounded-lg hover:bg-bambu-dark-tertiary transition-colors"
>
<div className="flex items-center justify-between gap-3">
<div className="flex items-center gap-3 min-w-0 flex-1">
<Calendar className="w-5 h-5 text-yellow-400 flex-shrink-0" />
<div className="min-w-0 flex-1">
<p className="text-xs text-bambu-gray">Next in queue</p>
<p className="text-sm text-white truncate">
{nextItem?.archive_name || `Archive #${nextItem?.archive_id}`}
@@ -56,15 +59,9 @@ export function PrinterQueueWidget({ printerId }: PrinterQueueWidgetProps) {
+{totalPending - 1}
</span>
)}
<Link
to="/queue"
className="p-1 hover:bg-bambu-dark-tertiary rounded transition-colors text-bambu-gray hover:text-white"
title="View queue"
>
<ChevronRight className="w-4 h-4" />
</Link>
<ChevronRight className="w-4 h-4 text-bambu-gray" />
</div>
</div>
</div>
</Link>
);
}