Bug 504054 - KUrlNavigator: Read-only badge is always positioned on the left
Summary: KUrlNavigator: Read-only badge is always positioned on the left
Status: CONFIRMED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: URL navigator (other bugs)
Version First Reported In: 6.14.0
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-11 12:52 UTC by Luke Horwell
Modified: 2025-05-16 05:54 UTC (History)
4 users (show)

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


Attachments
Mockup showing KIO 6.14.0, 6.11.0 and desired visual (132.57 KB, image/jpeg)
2025-05-11 12:52 UTC, Luke Horwell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Horwell 2025-05-11 12:52:03 UTC
Created attachment 181171 [details]
Mockup showing KIO 6.14.0, 6.11.0 and desired visual

SUMMARY

The recent improvements in the URL navigator is looking much better now (i.e. https://invent.kde.org/frameworks/kio/-/merge_requests/1842). However, unlike KIO <= 6.11.0, the 'emblem' displayed for the current folder is now always positioned before the first item.  Contextually, it would make sense to reinstate it's position back on the right, as it concerns the folder being displayed, not the first item.

The code suggests that the widget is supposed to appear after the path box, so this might be a bug:

    m_layout->addWidget(m_pathBox, 1);
    m_layout->addWidget(m_badgeWidgetContainer);


STEPS TO REPRODUCE
1. Open Dolphin
2. Open a read only folder a few directories deep (e.g. /var/log/audit)
3. Observe the position of the badge icon.


OBSERVED RESULT

Badge icon appears before the first item.
When there are long names, it appears like the first item might be the read only folder due to the chevron (see attachment)


EXPECTED RESULT

Badge icons appear next the currently opened folder (in bold).


SOFTWARE/OS VERSIONS
Arch Linux
KDE Plasma: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Dolphin 25.04.1
Comment 1 John Kizer 2025-05-16 05:54:53 UTC
I see that as well - thanks!