From 670463731fa48ef05dea9b01d57d2284d2f4b5eb Mon Sep 17 00:00:00 2001 From: Matthew Breedlove Date: Mon, 18 Aug 2025 04:14:12 -0400 Subject: [PATCH] Fix for block timer raw mode preview when showing progress bar --- src/widgets/BlockTimer.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/widgets/BlockTimer.ts b/src/widgets/BlockTimer.ts index fc41666..dea0d4a 100644 --- a/src/widgets/BlockTimer.ts +++ b/src/widgets/BlockTimer.ts @@ -58,10 +58,11 @@ export class BlockTimerWidget implements Widget { const displayMode = (item.metadata?.display ?? 'time') as DisplayMode; if (context.isPreview) { + const prefix = item.rawValue ? '' : 'Block '; if (displayMode === 'progress') { - return 'Block [██████████████████████░░░░░░░░] 73.9%'; + return `${prefix}[██████████████████████░░░░░░░░] 73.9%`; } else if (displayMode === 'progress-short') { - return 'Block [███████░░░░░░░░] 73.9%'; + return `${prefix}[███████░░░░░░░░] 73.9%`; } return item.rawValue ? '3hr 45m' : 'Block: 3hr 45m'; }