From dae1d12b6fcf7cc20318fb3fab93b00ab2b7fc5f Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Sun, 7 Sep 2025 18:50:21 -0400 Subject: [PATCH] NPill: smoother animation when opening and closing (no instant width jump) --- Widgets/NPill.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Widgets/NPill.qml b/Widgets/NPill.qml index 88d7000..f177864 100644 --- a/Widgets/NPill.qml +++ b/Widgets/NPill.qml @@ -45,7 +45,7 @@ Item { readonly property int pillOverlap: iconSize * 0.5 readonly property int maxPillWidth: Math.max(1, textItem.implicitWidth + pillPaddingHorizontal * 2 + pillOverlap) - width: iconSize + (effectiveShown ? maxPillWidth - pillOverlap : 0) + width: iconSize + Math.max(0, pill.width - pillOverlap) height: pillHeight Rectangle {