Bug 518436 - SwipeListItem contentItem overlaps with actions
Summary: SwipeListItem contentItem overlaps with actions
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 6.24.0
Platform: Other Linux
: NOR normal
Target Milestone: Not decided
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-04-02 12:37 UTC by tusooa
Modified: 2026-08-26 16:04 UTC (History)
2 users (show)

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


Attachments
Bug reproducing screenshot (8.87 KB, image/png)
2026-04-02 12:37 UTC, tusooa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tusooa 2026-04-02 12:37:23 UTC
Created attachment 191213 [details]
Bug reproducing screenshot

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
The contentItem of a SwipeListItem will now reach to the right end of the SwipeListItem, instead of correctly leaving the spaces at the right for its actions. This is a regression though I do not know in which version it was introduced exactly. It was introduced more than two months ago.

Also, if the bug is in QQC2-style-desktop instead of Kirigami, please reassign accordingly.

STEPS TO REPRODUCE
1. Given this code:
```
    ListView {
      anchors.fill: parent
      model: 3
      delegate: Kirigami.SwipeListItem {
          contentItem: RowLayout {
            Label {
              text: 'aaaaa'
              Layout.fillWidth: true
            }
            Rectangle {
              color: 'green'
              Layout.preferredWidth: 10
              Layout.preferredHeight: 10
            }
          }
          actions: [Kirigami.Action {
            icon.name: 'document-edit-symbolic'
            text: 'test'
          }]
        }
    }
```
2. Run it

OBSERVED RESULT
The green square is at the right end of the SwipeListItem and overlaps with the actions

EXPECTED RESULT
The green square should be on the left of the actions

SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)

Operating System: Gentoo Linux 2.18
KDE Plasma Version: 6.6.3
KDE Frameworks Version: 6.24.0
Qt Version: 6.10.2
Kernel Version: 6.18.4-gentoo-x86_64 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Downstream: https://iron.lily-is.land/T175
Comment 1 tusooa 2026-04-04 22:08:02 UTC
Problem: the left/right padding should include the width of the actions or the swipe handling item, but it doesn't.

I think it is probably a regression after https://invent.kde.org/frameworks/kirigami/-/merge_requests/1984/diffs , or the relevant QQC2 Desktop Style MR.
Comment 2 Bug Janitor Service 2026-08-26 14:57:35 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kirigami/-/merge_requests/2155
Comment 3 Marco Martin 2026-08-26 16:04:31 UTC
Git commit 0b0af2594e6a87a48bc1612e7e779fd0209bd936 by Marco Martin.
Committed on 26/08/2026 at 14:56.
Pushed by ngraham into branch 'master'.

SwipeListItem: Don't make the content item overlap the icons

make sure the content item doesn't overlap the icons, make
sure all the elements are correctly laid out both in desktop
and mobile modes, moth ltr and rtl layouts

M  +10   -4    src/controls/SwipeListItem.qml

https://invent.kde.org/frameworks/kirigami/-/commit/0b0af2594e6a87a48bc1612e7e779fd0209bd936