Bug 491587 - "Unplayed" count is overflowing for more than 3 digits
Summary: "Unplayed" count is overflowing for more than 3 digits
Status: RESOLVED FIXED
Alias: None
Product: kasts
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.05.1
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: bart
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-11 18:01 UTC by nikolas.gur
Modified: 2025-02-14 22:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
truncated number (25.79 KB, image/png)
2024-08-11 18:01 UTC, nikolas.gur
Details

Note You need to log in before you can comment on or make changes to this bug.
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