half-fix for notif width when sidebar open
This commit is contained in:
@@ -10,6 +10,7 @@ Item {
|
||||
|
||||
readonly property int padding: 6
|
||||
required property Item panels
|
||||
required property Item sidebarPanel
|
||||
required property PersistentProperties visibilities
|
||||
|
||||
anchors.bottom: parent.bottom
|
||||
@@ -43,7 +44,7 @@ Item {
|
||||
|
||||
return Math.min((QsWindow.window?.screen?.height ?? 0) - 1 * 2, height + padding * 2);
|
||||
}
|
||||
implicitWidth: Config.notifs.sizes.width + padding * 2
|
||||
implicitWidth: Math.max(sidebarPanel.width * (1 - sidebarPanel.offsetScale), Config.notifs.sizes.width + padding * 2)
|
||||
|
||||
Behavior on implicitHeight {
|
||||
Anim {
|
||||
@@ -72,8 +73,9 @@ Item {
|
||||
required property NotifServer.Notif modelData
|
||||
readonly property alias nonAnimHeight: notif.nonAnimHeight
|
||||
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
implicitHeight: notif.implicitHeight + (idx === 0 ? 0 : 8)
|
||||
implicitWidth: notif.implicitWidth
|
||||
|
||||
ListView.onRemove: removeAnim.start()
|
||||
onIndexChanged: {
|
||||
@@ -124,16 +126,20 @@ Item {
|
||||
}
|
||||
|
||||
ClippingRectangle {
|
||||
// implicitWidth: notif.implicitWidth
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: wrapper.idx === 0 ? 0 : 8
|
||||
color: "transparent"
|
||||
implicitHeight: notif.implicitHeight
|
||||
implicitWidth: notif.implicitWidth
|
||||
radius: Appearance.rounding.smallest / 2
|
||||
|
||||
Notification {
|
||||
id: notif
|
||||
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
modelData: wrapper.modelData
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user