fix: notification toast height no longer gets cut off with many notifications
C++ / fmt (pull_request) Failing after 8s
C++ / clang-tidy (pull_request) Failing after 10s
C++ / build (pull_request) Failing after 22s
JS/TS / fmt (pull_request) Successful in 10s
JS/TS / lint (pull_request) Successful in 10s
Python / static (pull_request) Failing after 28s
Rust / build (pull_request) Successful in 54s
Python / verify (pull_request) Failing after 1m22s
Rust / fmt (pull_request) Successful in 32s
Rust / clippy (pull_request) Successful in 1m6s

This commit is contained in:
2026-11-03 15:57:16 +01:00
parent 11e7aac195
commit 20dc53238d
4 changed files with 11 additions and 6 deletions
+2 -1
View File
@@ -128,6 +128,7 @@ Item {
panels: root panels: root
screenState: root.screenState screenState: root.screenState
sidebarPanel: sidebar sidebarPanel: sidebar
topPadding: Math.max(root.anchors.topMargin, root.anchors.bottomMargin)
} }
Launcher.Wrapper { Launcher.Wrapper {
@@ -183,7 +184,7 @@ Item {
anchors.bottom: utilities.top anchors.bottom: utilities.top
anchors.right: parent.right anchors.right: parent.right
anchors.top: notifications.bottom anchors.top: parent.top
panels: root panels: root
screenState: root.screenState screenState: root.screenState
} }
+1 -1
View File
@@ -257,7 +257,7 @@ CustomWindow {
atRestOverride: panel.implicitHeight > 0 atRestOverride: panel.implicitHeight > 0
panel: panels.notifications panel: panels.notifications
radius: Tokens.rounding.large + Tokens.padding.smaller radius: Tokens.rounding.large + Tokens.padding.small
} }
PanelBg { PanelBg {
+6 -4
View File
@@ -1,8 +1,8 @@
pragma ComponentBehavior: Bound pragma ComponentBehavior: Bound
import Quickshell import Quickshell
import Quickshell.Widgets
import QtQuick import QtQuick
import ZShell
import ZShell.Components import ZShell.Components
import ZShell.Config import ZShell.Config
import ZShell.Services import ZShell.Services
@@ -10,12 +10,14 @@ import qs.Components
import qs.Components.Notifs import qs.Components.Notifs
import qs.Daemons import qs.Daemons
import qs.Helpers import qs.Helpers
import qs.Services
Item { Item {
id: root id: root
readonly property int padding: Tokens.padding.smaller readonly property int padding: Tokens.padding.small
readonly property int clamped: ZUtils.clamp(padding - Config.bar.border, 0, padding)
required property int topPadding
required property Item panels required property Item panels
required property ScreenState screenState required property ScreenState screenState
@@ -40,7 +42,7 @@ Item {
height = h; height = h;
} }
return Math.min(((QsWindow.window as QsWindow)?.screen?.height ?? 0) - 1 * 2, height + padding * 2); return Math.min(((QsWindow.window as QsWindow)?.screen?.height ?? 0) + padding - clamped * 2 - topPadding, height + padding * 2);
} }
implicitWidth: Config.notifs.sizes.width + padding * 2 implicitWidth: Config.notifs.sizes.width + padding * 2
+2
View File
@@ -8,6 +8,7 @@ Item {
required property Item panels required property Item panels
required property Item sidebarPanel required property Item sidebarPanel
required property ScreenState screenState required property ScreenState screenState
required property int topPadding
implicitHeight: content.implicitHeight implicitHeight: content.implicitHeight
implicitWidth: content.implicitWidth implicitWidth: content.implicitWidth
@@ -18,5 +19,6 @@ Item {
panels: root.panels panels: root.panels
screenState: root.screenState screenState: root.screenState
topPadding: root.topPadding
} }
} }