We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79b0b6c commit dceeac9Copy full SHA for dceeac9
1 file changed
src/contents/ui/WindowSuggestions.qml
@@ -121,9 +121,9 @@ Window {
121
log('CellWidth before: ' + cellWidth);
122
if (suggestionsInsideTile) {
123
if (cellWidth < 320) {
124
- colCount = Math.floor(convertedOverlay[activeIndex].width / 320);
+ colCount = Math.min(count, Math.floor(convertedOverlay[activeIndex].width / 320));
125
} else {
126
- colCount = Math.floor(convertedOverlay[activeIndex].width / cellWidth);
+ colCount = Math.min(count, Math.floor(convertedOverlay[activeIndex].width / cellWidth));
127
}
128
cellWidth = (convertedOverlay[activeIndex].width - gridSpacing * (colCount + 1)) / Math.max(colCount, 2);
129
0 commit comments