Created attachment 179193 [details] A screenshot of the widget displaying "Alpha" by C418, but the word Alpha is cut off to "Alp..." SUMMARY When the Media Player widget is placed in a panel with 2 or more spacers, the title on the widget is always slightly cut off, no matter how long the text is. STEPS TO REPRODUCE 1. Create a panel 2. Add the Media Player widget to it 3. Add 2 or more spacers with flexible size to the panel 4. Play a video or song OBSERVED RESULT Even if there is enough space for the full title, the last few characters are always cut off behind an ellipsis ("...") EXPECTED RESULT If there is enough space for the full video/song/etc title to fit, then it should display the entire title SOFTWARE/OS VERSIONS Operating System: Fedora Linux 41 KDE Plasma Version: 6.3.2 KDE Frameworks Version: 6.11.0 Qt Version: 6.8.2 ADDITIONAL INFORMATION
I confirmed this on git-master
I can only sometimes reproduce this; it seems to depend on the actual text. For example: With a song named, "Void Obsidian: NGC 2244", it works fine. With a song named, "Void Obsidian: NGC 2246", the text gets cut off.
This fixes it for everything in my testing: diff --git applets/mediacontroller/package/contents/ui/CompactRepresentation.qml applets/mediacontroller/package/contents/ui/CompactRepresentation.qml index 2bf97b116c..72b71b3666 100644 --- applets/mediacontroller/package/contents/ui/CompactRepresentation.qml +++ applets/mediacontroller/package/contents/ui/CompactRepresentation.qml @@ -25,7 +25,7 @@ Loader { switch (compactRepresentation.layoutForm) { case CompactRepresentation.LayoutType.HorizontalPanel: case CompactRepresentation.LayoutType.HorizontalDesktop: - return implicitWidth; + return implicitWidth + 10; default: return -1; } That's obviously the wrong change to fix it, but it shows that the Loader's implicitWidth is being set to something slightly too narrow.
Actually, even just +1 is enough.
Can't figure out why; giving up for now. Somebody smarter than me might be able to fix it.