1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2024-10-28 08:49:35 +01:00

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
This commit is contained in:
Andreas Hatziiliou 2024-10-22 10:06:17 -04:00
parent f5743da2d6
commit 9d00c4f4e3

View file

@ -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();
}