Merge branch 'work/fuf/fixsddmlockscreenbuttonoverflow' into 'master'

sddm-theme: keep action buttons on screen on short displays

See merge request plasma/plasma-desktop!4156
This commit is contained in:
Fushan Wen 2026-11-04 00:14:11 +08:00
commit 5948d7c101
2 changed files with 15 additions and 2 deletions

View file

@ -304,7 +304,14 @@ Item {
left: parent.left
right: parent.right
}
height: lockScreenRoot.height + Kirigami.Units.gridUnit * 3
height: lockScreenRoot.height
// The page-transition zoom animation scales pages up to zoomFactor;
// clip them so the part that would extend past the screen is hidden
// instead of being drawn outside the visible area. Keeping the
// height at lockScreenRoot.height (not larger) also keeps
// SessionManagementScreen from anchoring its action buttons below
// the visible screen edge.
clip: true
focus: true //StackView is an implicit focus scope, so we need to give this focus so the item inside will have it
// this isn't implicit, otherwise items still get processed for the scenegraph

View file

@ -147,7 +147,13 @@ Item {
left: parent.left
right: parent.right
}
height: root.height + Kirigami.Units.gridUnit * 3
height: root.height
// The page-transition zoom animation scales pages up to zoomFactor;
// clip them so the part that would extend past the screen is hidden
// instead of being drawn outside the visible area. Keeping the
// height at root.height (not larger) also keeps SessionManagementScreen
// from anchoring its action buttons below the visible screen edge.
clip: true
// this isn't implicit, otherwise items still get processed for the scenegraph
visible: opacity > 0