From 9d00c4f4e3e3c4a81a673c07893ece5aba4adcff Mon Sep 17 00:00:00 2001 From: Andreas Hatziiliou <andreas.hatziiliou@savoirfairelinux.com> Date: Tue, 22 Oct 2024 10:06:17 -0400 Subject: [PATCH] chatview: default view to chat instead of side-panel When the application window or screen is too small and the user opens the details side-panel, it will display over the chat. This change makes it so that switching conversation's defaults the view back to the chat and not to the side-panel. Change-Id: I3cffba24a7d23d7635937329c2078979722031c4 --- src/app/mainview/components/ChatView.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/mainview/components/ChatView.qml b/src/app/mainview/components/ChatView.qml index a1e62d702..63ea95c47 100644 --- a/src/app/mainview/components/ChatView.qml +++ b/src/app/mainview/components/ChatView.qml @@ -133,6 +133,10 @@ Rectangle { target: CurrentConversation function onIdChanged() { + console.log(CurrentConversation.id); + if (width < JamiTheme.mainViewMinWidth + extrasPanel.width) { + extrasPanel.visible = false; + } if (!chatViewHeader.interactionButtonsVisibility) extrasPanel.closePanel(); } -- GitLab