fix: clean up notif wrapper and format
This commit is contained in:
parent
e8ffd51442
commit
2c5e433b73
2 changed files with 2 additions and 21 deletions
|
|
@ -2,9 +2,9 @@ pragma ComponentBehavior: Bound
|
|||
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import qs.modules.launcher.services
|
||||
import qs.components
|
||||
import qs.config
|
||||
import qs.modules.launcher.services
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import QtQuick
|
||||
import qs.components
|
||||
import qs.config
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
|
@ -10,29 +9,11 @@ Item {
|
|||
property alias osdPanel: content.osdPanel
|
||||
property alias sessionPanel: content.sessionPanel
|
||||
|
||||
visible: anchors.topMargin > -implicitHeight - 5
|
||||
visible: height > 0
|
||||
anchors.topMargin: -5
|
||||
implicitWidth: Math.max(sidebarPanel.width, content.implicitWidth)
|
||||
implicitHeight: content.implicitHeight
|
||||
|
||||
states: State {
|
||||
name: "hidden"
|
||||
// when: root.visibilities.sidebar && Config.sidebar.enabled
|
||||
|
||||
PropertyChanges {
|
||||
root.anchors.topMargin: -implicitHeight - 5
|
||||
}
|
||||
}
|
||||
|
||||
transitions: Transition {
|
||||
Anim {
|
||||
target: root.anchors
|
||||
property: "topMargin"
|
||||
duration: Appearance.anim.durations.expressiveDefaultSpatial
|
||||
easing.bezierCurve: Appearance.anim.curves.expressiveDefaultSpatial
|
||||
}
|
||||
}
|
||||
|
||||
Content {
|
||||
id: content
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue