left sidebar: fix width anim

This commit is contained in:
end-4 2025-06-01 17:53:28 +02:00
parent aaf652b17c
commit e024f896a6

View file

@ -30,7 +30,6 @@ Scope { // Scope
}
onPinChanged: {
console.log("Sidebar pin state changed:", root.pin);
if (root.pin) {
sidebarContent.parent = null; // Detach content from sidebar
sidebarLoader.active = false; // Unload sidebar
@ -105,6 +104,10 @@ Scope { // Scope
color: Appearance.colors.colLayer0
radius: Appearance.rounding.screenRounding - Appearance.sizes.elevationMargin + 1
Behavior on width {
animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
}
Keys.onPressed: (event) => {
if (event.key === Qt.Key_Escape) {
sidebarRoot.hide();