Commit 502b963b authored by Jonah Brüchert's avatar Jonah Brüchert 🌳 Committed by Nate Graham

UpdatesPage: Fix icon sizing on small screens

Summary:
On Small screens (e.g phones), not all list items have the same height, for example when a package has a long version string.
Since the width of the icon was previously copied from the height, this resulted in inconsistent icon sizes.

This patch sets the icon size to a constant value, which fixes the problem.

BUG: 404070

Test Plan: Icon sizes are consistent and still correctly sized

Reviewers: #discover_software_store

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D18964
parent 5283182b
......@@ -217,8 +217,8 @@ DiscoverPage
}
Kirigami.Icon {
Layout.fillHeight: true
Layout.preferredWidth: height
width: Kirigami.Units.gridUnit * 2
Layout.preferredHeight: width
source: decoration
smooth: true
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment