notifs: fix shrink height

Fix height when osd/session blocks
This commit is contained in:
2 * r + 2 * t 2025-07-09 22:32:44 +10:00
parent c3e8127422
commit 8b61a02145

View file

@ -28,13 +28,13 @@ Item {
if (visibilities && panel) {
if (visibilities.osd) {
const h = panel.osd.y - Config.border.rounding * 2;
const h = panel.osd.y - Config.border.rounding * 2 - padding * 2;
if (height > h)
height = h;
}
if (visibilities.session) {
const h = panel.session.y - Config.border.rounding * 2;
const h = panel.session.y - Config.border.rounding * 2 - padding * 2;
if (height > h)
height = h;
}