diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-08-18 01:19:49 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-08-19 20:15:22 +0800 |
| commit | b941aadf3f061c2fe5751694820ab3757a0c6f85 (patch) | |
| tree | e3e75e2ee1504e9eff9602973cef0bcfc4cc14f6 | |
| parent | 1dfe7699cc77e9eeffdbfaaf2b858ca656080d1a (diff) | |
fix(Clip): properly clip/set width of selected item
fixes activeRect overflowing on preview
as activeRect depends on the width and ignores clip
clip was already working on the texts
| -rw-r--r-- | launcher/components/Clip.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/components/Clip.qml b/launcher/components/Clip.qml index 612736e..b15df8c 100644 --- a/launcher/components/Clip.qml +++ b/launcher/components/Clip.qml @@ -90,7 +90,7 @@ IComponent { delegate: Item { required property var modelData required property int index - width: item.implicitWidth + Launcher.innerMargin * 4 + width: Math.min(item.implicitWidth + Launcher.innerMargin * 4, listView.width) height: item.height + Launcher.innerMargin * 4 Row { @@ -99,6 +99,7 @@ IComponent { anchors.top: parent.top anchors.margins: Launcher.innerMargin * 2 spacing: Launcher.innerMargin * 2 + clip: true IconImage { scale: index === root.selectedIndex ? 1.01 : 0.9 |
