Bug 521562 - Icon badge goes out of bounds
Summary: Icon badge goes out of bounds
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: 6.7.0
Platform: Fedora RPMs Linux
: HI normal
Target Milestone: 1.0
Assignee: Nate Graham
URL:
Keywords: regression
: 520184 (view as bug list)
Depends on:
Blocks:
 
Reported: 2026-06-17 10:13 UTC by priv.luk
Modified: 2026-06-18 16:07 UTC (History)
4 users (show)

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


Attachments
Telegram notification badge going out of bounds (18.84 KB, image/png)
2026-06-17 10:13 UTC, priv.luk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description priv.luk 2026-06-17 10:13:49 UTC
Created attachment 193229 [details]
Telegram notification badge going out of bounds

DESCRIPTION
Icon badge goes out of bounds

STEPS TO REPRODUCE
1. Reduce panel height
2. Get 9999+ notifications on Telegram

OBSERVED RESULT
Badge doesn't fit within the icon

EXPECTED RESULT
Badge fits within the icon

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 44
KDE Plasma Version: 6.7.0
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
Kernel Version: 7.0.12-201.fc44.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor
Memory: 128 GiB of RAM (125.7 GiB usable)
Graphics Processor: AMD Radeon RX 6600 XT

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2026-06-17 11:58:40 UTC
What is the thickness of your panel?
Comment 2 priv.luk 2026-06-17 11:59:22 UTC
(In reply to Nate Graham from comment #1)
> What is the thickness of your panel?

panel height: 24
Comment 3 Nate Graham 2026-06-17 13:20:12 UTC
Thanks.
Comment 4 Nate Graham 2026-06-17 13:20:15 UTC
*** Bug 520184 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2026-06-17 13:21:08 UTC
I'll fix it. I thought I had handled all the cases here, but at the margins, I see it's still possible to overflow. Probably need to shorten the "you have too many unread notifications" case to something more compact.
Comment 6 Bug Janitor Service 2026-06-17 16:54:44 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3830
Comment 7 Nate Graham 2026-06-18 15:34:36 UTC
Git commit 6299240545ad56f9e3a543936822ccbad58e323a by Nate Graham.
Committed on 18/06/2026 at 15:34.
Pushed by ngraham into branch 'master'.

applets/taskmanager: fix badge overflow at extreme margins of usage

In Plasma 6.6 and earlier, badge overflows for unread counts beyond 10k
items were prevented by making the badge too small to effectively read.

But in Plasma 6.7, with the port to the standard badge, the minimum size was
increased for technical reasons relating to the way the new badge works.
Now it can overflow with 10k+ unread items and a 24px or thinner panel.

To fix this, make the following changes:
- Limit the badge to a maximum of 3 characters; past 999 items, switch
  to showing "1k", "2k", etc. Past 9k, show "9k+".
- Move the badge a little bit farther away from the left edge of the
  task bounding box when the panel height is super super thin.

This resolves the issue in 100% of cases, at least with default fonts
and theming.
FIXED-IN: 6.7.1

M  +17   -5    applets/taskmanager/qml/TaskBadgeOverlay.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/6299240545ad56f9e3a543936822ccbad58e323a
Comment 8 Nate Graham 2026-06-18 16:07:43 UTC
Git commit b896d57c1c08cc6cebaad11d85ca9bd0af93ee7c by Nate Graham.
Committed on 18/06/2026 at 16:07.
Pushed by ngraham into branch 'Plasma/6.7'.

applets/taskmanager: fix badge overflow at extreme margins of usage

In Plasma 6.6 and earlier, badge overflows for unread counts beyond 10k
items were prevented by making the badge too small to effectively read.

But in Plasma 6.7, with the port to the standard badge, the minimum size was
increased for technical reasons relating to the way the new badge works.
Now it can overflow with 10k+ unread items and a 24px or thinner panel.

To fix this, make the following changes:
- Limit the badge to a maximum of 3 characters; past 999 items, switch
  to showing "1k", "2k", etc. Past 9k, show "9k+".
- Move the badge a little bit farther away from the left edge of the
  task bounding box when the panel height is super super thin.

This resolves the issue in 100% of cases, at least with default fonts
and theming.
FIXED-IN: 6.7.1


(cherry picked from commit 6299240545ad56f9e3a543936822ccbad58e323a)

bea26001 applets/taskmanager: fix badge overflow at extreme margins of usage
0a844409 Show "9k+" instead of "∞"

Co-authored-by: Nate Graham <nate@kde.org>

M  +17   -5    applets/taskmanager/qml/TaskBadgeOverlay.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/b896d57c1c08cc6cebaad11d85ca9bd0af93ee7c