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
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:
@@ -1,8 +1,8 @@
|
||||
pragma ComponentBehavior: Bound
|
||||
|
||||
import Quickshell
|
||||
import Quickshell.Widgets
|
||||
import QtQuick
|
||||
import ZShell
|
||||
import ZShell.Components
|
||||
import ZShell.Config
|
||||
import ZShell.Services
|
||||
@@ -10,12 +10,14 @@ import qs.Components
|
||||
import qs.Components.Notifs
|
||||
import qs.Daemons
|
||||
import qs.Helpers
|
||||
import qs.Services
|
||||
|
||||
Item {
|
||||
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 ScreenState screenState
|
||||
|
||||
@@ -40,7 +42,7 @@ Item {
|
||||
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
|
||||
|
||||
@@ -8,6 +8,7 @@ Item {
|
||||
required property Item panels
|
||||
required property Item sidebarPanel
|
||||
required property ScreenState screenState
|
||||
required property int topPadding
|
||||
|
||||
implicitHeight: content.implicitHeight
|
||||
implicitWidth: content.implicitWidth
|
||||
@@ -18,5 +19,6 @@ Item {
|
||||
|
||||
panels: root.panels
|
||||
screenState: root.screenState
|
||||
topPadding: root.topPadding
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user