From 04529b4898f392a898e75dba8ec4f78ae4b7dc23 Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Mon, 5 Jan 2026 15:04:00 -0500 Subject: [PATCH] chore: Don't use dropdown if only one item (#5063) --- .../chat_settings/pages/chat_details_button_row.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/pangea/chat_settings/pages/chat_details_button_row.dart b/lib/pangea/chat_settings/pages/chat_details_button_row.dart index 33256f836..be7ad2bc1 100644 --- a/lib/pangea/chat_settings/pages/chat_details_button_row.dart +++ b/lib/pangea/chat_settings/pages/chat_details_button_row.dart @@ -214,6 +214,16 @@ class ChatDetailsButtonRowState extends State { return const SizedBox(); } + if (otherButtons.length == 1) { + return Expanded( + child: RoomDetailsButton( + mini: mini, + buttonDetails: otherButtons.first, + height: mini ? _miniButtonWidth : _buttonHeight, + ), + ); + } + return Expanded( child: PopupMenuButton( useRootNavigator: true,