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 Quickshell
|
||||
import Quickshell.Services.Notifications
|
||||
import Quickshell.Widgets
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import qs.modules.notifications as N
|
||||
|
|
@ -165,12 +166,18 @@ ColumnLayout {
|
|||
}
|
||||
}
|
||||
|
||||
N.Notification {
|
||||
id: notif
|
||||
width: parent.width
|
||||
notif: wrapper.modelData
|
||||
color: wrapper.modelData.urgency === NotificationUrgency.Critical ? Config.colors.errorBg : Config.colors.containerAlt
|
||||
inPopup: false
|
||||
ClippingRectangle {
|
||||
anchors.fill: parent
|
||||
color: "transparent"
|
||||
radius: notif.radius
|
||||
|
||||
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