Skip to content

Commit

Permalink
faces/grid: Fix minimum width of Full rep
Browse files Browse the repository at this point in the history
We shouldn't use a fixed width, but check if the grid actually has a
larger width and use that.
  • Loading branch information
awhiemstra committed Jul 3, 2024
1 parent 26b69c9 commit bead911
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Faces.SensorFace {
readonly property int autoColumnCount: Math.ceil(Math.sqrt(controller.highPrioritySensorIds.length))

// Arbitrary minimumWidth to make easier to align plasmoids in a predictable way
Layout.minimumWidth: Kirigami.Units.gridUnit * 8
Layout.minimumWidth: Math.max(Kirigami.Units.gridUnit * 8, grid.Layout.minimumWidth)
Layout.preferredWidth: grid.preferredWidth + Kirigami.Units.largeSpacing

contentItem: FaceGrid {
Expand Down

0 comments on commit bead911

Please sign in to comment.