mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-20 09:03:43 +02:00
Show 0% wear in nozzle rack hover card (#300)
The wear field was hidden when wear was 0 because the condition `slot.wear > 0` treated 0 the same as null/unavailable. New nozzles showed no wear info at all. Removed the > 0 check so "Wear: 0%" displays correctly while still hiding the field when wear is null (non-H2C printers).
This commit is contained in:
@@ -530,8 +530,8 @@ function NozzleSlotHoverCard({ slot, index, children }: {
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{/* Wear (hide if null/0) */}
|
||||
{slot.wear != null && slot.wear > 0 && (
|
||||
{/* Wear (hide if null) */}
|
||||
{slot.wear != null && (
|
||||
<div className="flex items-center justify-between">
|
||||
<span className="text-[10px] uppercase tracking-wider text-bambu-gray font-medium">{t('printers.nozzleWear')}</span>
|
||||
<span className="text-xs text-white font-semibold">{slot.wear}%</span>
|
||||
|
||||
Reference in New Issue
Block a user