From 8953ad604f462cb21c27c46e2a25d242ba96d889 Mon Sep 17 00:00:00 2001 From: teknsl <64030674+teknsl@users.noreply.github.com> Date: Sat, 27 Sep 2025 11:50:18 +0200 Subject: [PATCH] fix: usercard resizing improperly without recent messages (#6496) --- CHANGELOG.md | 1 + src/widgets/dialogs/UserInfoPopup.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 326c74b9..87f271d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unversioned +- Minor: Fixed usercard resizing improperly without recent messages. (#6496) - Dev: Make code sanitizers opt in with the `CHATTERINO_SANITIZER_SUPPORT` CMake option. After that's enabled, use the `SANITIZE_*` flag to enable individual sanitizers. (#6493) - Dev: Fix 32-bit compile in PluginRepl. (#6483) diff --git a/src/widgets/dialogs/UserInfoPopup.cpp b/src/widgets/dialogs/UserInfoPopup.cpp index c9994164..f388ceb8 100644 --- a/src/widgets/dialogs/UserInfoPopup.cpp +++ b/src/widgets/dialogs/UserInfoPopup.cpp @@ -587,6 +587,8 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically, Split *split) { this->ui_.noMessagesLabel = new Label("No recent messages"); this->ui_.noMessagesLabel->setVisible(false); + this->ui_.noMessagesLabel->setSizePolicy(QSizePolicy::Expanding, + QSizePolicy::Expanding); this->ui_.latestMessages = new ChannelView(this, this->split_, ChannelView::Context::UserCard,