mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
keep applet expanded when only one
This commit is contained in:
parent
8f826e5d9f
commit
fd7a2e7c08
2 changed files with 3 additions and 1 deletions
|
|
@ -33,6 +33,8 @@ Item {
|
|||
|
||||
Plasmoid.preferredRepresentation: plasmoid.fullRepresentation
|
||||
|
||||
Layout.minimumHeight: flow.implicitHeight + units.largeSpacing*2
|
||||
|
||||
ListModel {
|
||||
id: settingsModel
|
||||
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ PlasmaCore.ColorScope {
|
|||
left: parent.left
|
||||
right: parent.right
|
||||
}
|
||||
height: applet && applet.expanded ? Math.max(applet.fullRepresentationItem.Layout.minimumHeight, units.iconSizes.medium) : units.iconSizes.medium
|
||||
height: applet && (applet.expanded || plasmoid.applets.count == 1) ? Math.max(applet.fullRepresentationItem.Layout.minimumHeight, units.iconSizes.medium) : units.iconSizes.medium
|
||||
Behavior on height {
|
||||
NumberAnimation {
|
||||
duration: units.shortDuration
|
||||
|
|
|
|||
Loading…
Reference in a new issue