Merge pull request #1933 from notiant/patch-10

DockMenu: layout adjustments
This commit is contained in:
Lysec
2026-02-23 10:07:16 +01:00
committed by GitHub
3 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ Loader {
readonly property int barHeight: Style.getBarHeightForScreen(modelData?.name)
readonly property int peekEdgeLength: {
const edgeSize = isVertical ? Math.round(modelData?.height || maxHeight) : Math.round(modelData?.width || maxWidth);
const minLength = Math.max(1, Math.round(edgeSize * 0.1));
const minLength = Math.max(1, Math.round(edgeSize * ((isStaticMode && Settings.data.dock.showFrameIndicator && Settings.data.bar.barType === "framed" && hasBar) ? 0.1 : 0.25)));
return Math.max(minLength, frameIndicatorLength);
}
readonly property int peekCenterOffsetX: {