From 62da98af945899b969012a81d8390fa231a3dbc0 Mon Sep 17 00:00:00 2001 From: Akseli Lahtinen Date: Sat, 19 Apr 2025 00:48:56 +0300 Subject: [PATCH] ChatBar: set chatBarSizeHelper for compactLayout to root.width In chatBarSizeHelper, if user is in compact mode and resizes the window, maxWidth would be -1 and that caused something to go wrong with the padding calculations. Instead, just set it to root.width with some padding, so it always is the width of the ChatBar. --- src/chatbar/ChatBar.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chatbar/ChatBar.qml b/src/chatbar/ChatBar.qml index 334a230bc..c1787c2d4 100644 --- a/src/chatbar/ChatBar.qml +++ b/src/chatbar/ChatBar.qml @@ -362,7 +362,7 @@ QQC2.Control { endBreakpoint: Kirigami.Units.gridUnit * 66 startPercentWidth: 100 endPercentWidth: NeoChatConfig.compactLayout ? 100 : 85 - maxWidth: NeoChatConfig.compactLayout ? -1 : Kirigami.Units.gridUnit * 60 + maxWidth: NeoChatConfig.compactLayout ? root.width - Kirigami.Units.largeSpacing * 2 : Kirigami.Units.gridUnit * 60 } Component {