mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Merge branch 'Applications/18.04'
This commit is contained in:
commit
e8d8a8c35b
|
@ -179,14 +179,6 @@ void DolphinItemListView::updateGridSize()
|
||||||
const int minItemWidth = 48;
|
const int minItemWidth = 48;
|
||||||
itemWidth = minItemWidth + IconsModeSettings::textWidthIndex() * 64;
|
itemWidth = minItemWidth + IconsModeSettings::textWidthIndex() * 64;
|
||||||
|
|
||||||
if (previewsShown()) {
|
|
||||||
// Optimize the width for previews with a 3:2 aspect ratio instead
|
|
||||||
// of a 1:1 ratio to avoid wasting too much vertical space when
|
|
||||||
// showing photos.
|
|
||||||
const int minWidth = iconSize * 3 / 2;
|
|
||||||
itemWidth = qMax(itemWidth, minWidth);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (itemWidth < iconSize + padding * 2) {
|
if (itemWidth < iconSize + padding * 2) {
|
||||||
itemWidth = iconSize + padding * 2;
|
itemWidth = iconSize + padding * 2;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue