1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00

launcher v2: spacing adjustments

This commit is contained in:
bbedward
2026-01-20 18:10:55 -05:00
parent 2b2977de4a
commit 80ce6aa19c
2 changed files with 5 additions and 5 deletions

View File

@@ -390,7 +390,7 @@ FocusScope {
anchors.rightMargin: Theme.spacingM
anchors.topMargin: Theme.spacingM
anchors.bottomMargin: Theme.spacingXS
spacing: Theme.spacingM
spacing: Theme.spacingXS
clip: false
Row {
@@ -484,7 +484,7 @@ FocusScope {
Item {
width: parent.width
height: parent.height - 56 - actionPanel.height - Theme.spacingM * 2
height: parent.height - 56 - actionPanel.height - Theme.spacingM - Theme.spacingXS
opacity: root.parentModal?.isClosing ? 0 : 1
ResultsList {

View File

@@ -68,11 +68,11 @@ Item {
var targetY = sectionY + 32 + itemY;
var targetBottom = targetY + itemHeight;
var stickyHeight = stickyHeader.visible ? 32 : 0;
var stickyHeight = mainFlickable.contentY > 0 ? 32 : 0;
var shadowPadding = 24;
if (targetY < mainFlickable.contentY + stickyHeight) {
mainFlickable.contentY = Math.max(0, targetY - stickyHeight);
mainFlickable.contentY = Math.max(0, targetY - 32);
} else if (targetBottom > mainFlickable.contentY + mainFlickable.height - shadowPadding) {
mainFlickable.contentY = Math.min(mainFlickable.contentHeight - mainFlickable.height, targetBottom - mainFlickable.height + shadowPadding);
}
@@ -385,7 +385,7 @@ Item {
return null;
var scrollY = mainFlickable.contentY;
if (scrollY <= 32)
if (scrollY <= 0)
return null;
var y = 0;