Bug 491587

Summary: "Unplayed" count is overflowing for more than 3 digits
Product: [Applications] kasts Reporter: nikolas.gur
Component: generalAssignee: bart
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 24.05.1   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: truncated number

Description nikolas.gur 2024-08-11 18:01:23 UTC
Created attachment 172518 [details]
truncated number

If you go to the "Subscriptions" panel and have a podcast added with more than 999 episodes unplayed, you can see only a part of the first and last digit.

EXPECTED RESULT

The number showing unplayed episodes should be shown in full.
Comment 1 Bug Janitor Service 2025-02-14 21:57:55 UTC
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/kasts/-/merge_requests/248
Comment 2 bart 2025-02-14 21:59:14 UTC
In my case I couldn't make the label overflow, even with 4 digits.

I have changed the code to make the blue background label adapt to the text width, so that should solve it.  Even though it might look a bit odd.
Comment 3 bart 2025-02-14 22:00:35 UTC
Git commit 31772a26a79b6aa9729dad9fccabbe8980724a75 by Bart De Vries.
Committed on 14/02/2025 at 21:56.
Pushed by bdevries into branch 'master'.

Make unplayed count label auto-adapt its width to value

This might not look as nice, but at least the amount of unplayed
episodes is now not overflowing the background rectangle.

M  +2    -1    src/qml/FeedListDelegate.qml

https://invent.kde.org/multimedia/kasts/-/commit/31772a26a79b6aa9729dad9fccabbe8980724a75