fix(dashboard): clip notification contents to boundary
This commit is contained in:
parent
a7023aaf45
commit
b9fcb7227b
1 changed files with 13 additions and 6 deletions
|
|
@ -6,6 +6,7 @@ import qs.services
|
||||||
import qs.util
|
import qs.util
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Services.Notifications
|
import Quickshell.Services.Notifications
|
||||||
|
import Quickshell.Widgets
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import qs.modules.notifications as N
|
import qs.modules.notifications as N
|
||||||
|
|
@ -165,12 +166,18 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
N.Notification {
|
ClippingRectangle {
|
||||||
id: notif
|
anchors.fill: parent
|
||||||
width: parent.width
|
color: "transparent"
|
||||||
notif: wrapper.modelData
|
radius: notif.radius
|
||||||
color: wrapper.modelData.urgency === NotificationUrgency.Critical ? Config.colors.errorBg : Config.colors.containerAlt
|
|
||||||
inPopup: false
|
N.Notification {
|
||||||
|
id: notif
|
||||||
|
width: wrapper.width
|
||||||
|
notif: wrapper.modelData
|
||||||
|
color: wrapper.modelData.urgency === NotificationUrgency.Critical ? Config.colors.errorBg : Config.colors.containerAlt
|
||||||
|
inPopup: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue