diff --git a/applets/kicker/package/contents/ui/MenuRepresentation.qml b/applets/kicker/package/contents/ui/MenuRepresentation.qml --- a/applets/kicker/package/contents/ui/MenuRepresentation.qml +++ b/applets/kicker/package/contents/ui/MenuRepresentation.qml @@ -27,8 +27,10 @@ focus: true - Layout.minimumWidth: sideBar.width + mainRow.spacing + Math.max(units.gridUnit * 14, runnerColumns.width) - Layout.maximumWidth: sideBar.width + mainRow.spacing + Math.max(units.gridUnit * 14, runnerColumns.width) + Layout.minimumWidth: (sideBar.width + (sideBar.width ? mainRow.spacing : 0) + + Math.max(units.gridUnit * 14, runnerColumns.width)) + Layout.maximumWidth: (sideBar.width + (sideBar.width ? mainRow.spacing : 0) + + Math.max(units.gridUnit * 14, runnerColumns.width)) Layout.minimumHeight: Math.max(((rootModel.count - rootModel.separatorCount) * rootList.itemHeight) + (rootModel.separatorCount * rootList.separatorHeight) @@ -65,7 +67,10 @@ PlasmaCore.FrameSvgItem { id: sideBar - width: units.iconSizes.medium + margins.left + margins.right + visible: width > 0 + + width: (globalFavorites.count + systemFavorites.count + ? units.iconSizes.medium + margins.left + margins.right : 0) height: parent.height imagePath: "widgets/frame" @@ -305,7 +310,7 @@ anchors.bottom: mainRow.bottom anchors.left: parent.left - anchors.leftMargin: sideBar.width + mainRow.spacing + units.smallSpacing + anchors.leftMargin: sideBar.width + (sideBar.width ? mainRow.spacing : 0) + units.smallSpacing width: (units.gridUnit * 14) - (2 * units.smallSpacing)