Show hours in trim-bar times past 60 minutes - #7
Chessing234 wants to merge 2 commits into
Conversation
fmt treated minutes as unbounded, so hour-long clips rendered as 60:00.00 instead of 01:00:00.00. Signed-off-by: Taksh <takshkothari09@gmail.com>
The bubble's width was a fixed 82px, which is exactly what "mm:ss.cc" measures at 15px DemiBold monospace. An "hh:mm:ss.cc" time measures 99px, so past an hour the first and last characters rendered outside the bubble's background, on top of the filmstrip. Binding the width to the label keeps the bubble at 82px below an hour and grows it past one, and it also repairs the on-screen clamp on x, which used the bubble's width and so kept the background inside the track while the wider text ran off the end. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Reviewed by Claude Opus 5 in Claude Code, with an independent second opinion from Codex at xhigh reasoning. Anything that had to run ran on a disposable Omarchy VM, never on the machine holding the credentials. The arithmetic holds. I exercised Nothing consumes the string as data. The only call sites are The layout did break, and I pushed a fix as 32c7318. The status line in
Codex agreed on the bubble, reaching the same mechanism and close to the same numbers, and added the 12-character Waiting on the maintainer from here. Nothing outstanding for you. |
Summary
Format.fmttreated minutes as unbounded, so hour-long clips rendered as60:00.00.hh:mm:ss.cconce the duration reaches an hour.Test plan
mm:ss.cc01:00:00.00Made with Cursor