diff --git a/containments/desktop/package/contents/ui/FolderItemDelegate.qml b/containments/desktop/package/contents/ui/FolderItemDelegate.qml --- a/containments/desktop/package/contents/ui/FolderItemDelegate.qml +++ b/containments/desktop/package/contents/ui/FolderItemDelegate.qml @@ -228,8 +228,12 @@ return parent.height; } - return (icon.height + (2 * units.smallSpacing) + (label.lineCount - * theme.mSize(theme.defaultFont).height) + (3 * units.smallSpacing)); + // Note: frameLoader.y = units.smallSpacing (acts as top margin) + return (units.smallSpacing // icon.anchors.topMargin (acts as top padding) + + icon.height + + units.smallSpacing // label.anchors.topMargin (acts as spacing between icon and label) + + (label.lineCount * theme.mSize(theme.defaultFont).height) + + units.smallSpacing); // leftover (acts as bottom padding) } PlasmaCore.IconItem { @@ -259,7 +263,7 @@ ] anchors { - topMargin: (2 * units.smallSpacing) + topMargin: units.smallSpacing leftMargin: units.smallSpacing } diff --git a/containments/desktop/package/contents/ui/FolderView.qml b/containments/desktop/package/contents/ui/FolderView.qml --- a/containments/desktop/package/contents/ui/FolderView.qml +++ b/containments/desktop/package/contents/ui/FolderView.qml @@ -598,7 +598,7 @@ + Math.max(highlightItemSvg.margins.top + highlightItemSvg.margins.bottom, listItemSvg.margins.top + listItemSvg.margins.bottom)) / 2) * 2; } else { - var iconHeight = iconSize + (theme.mSize(theme.defaultFont).height * plasmoid.configuration.textLines) + (6 * units.smallSpacing); + var iconHeight = iconSize + (theme.mSize(theme.defaultFont).height * plasmoid.configuration.textLines) + (4 * units.smallSpacing); if (root.isContainment && isRootView && scrollArea.viewportHeight > 0) { var extraHeight = calcExtraSpacing(iconHeight, scrollArea.viewportHeight); return iconHeight + extraHeight;