From 5e5bb7e87d57ceaea939182bcf658f628bb4b0f5 Mon Sep 17 00:00:00 2001 From: idubnori Date: Thu, 11 Dec 2025 07:18:55 +0900 Subject: [PATCH] fix(mobile): versionStatus.message text overflow (#24504) --- .../server_update_notification.dart | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/mobile/lib/widgets/common/app_bar_dialog/server_update_notification.dart b/mobile/lib/widgets/common/app_bar_dialog/server_update_notification.dart index 6068ee022e..179eab8e7d 100644 --- a/mobile/lib/widgets/common/app_bar_dialog/server_update_notification.dart +++ b/mobile/lib/widgets/common/app_bar_dialog/server_update_notification.dart @@ -53,16 +53,18 @@ class ServerUpdateNotification extends HookConsumerWidget { child: Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - Text( - serverInfoState.versionStatus.message, - textAlign: TextAlign.start, - maxLines: 3, - overflow: TextOverflow.ellipsis, - style: context.textTheme.labelLarge, + Expanded( + child: Text( + serverInfoState.versionStatus.message, + textAlign: TextAlign.start, + maxLines: 3, + overflow: TextOverflow.ellipsis, + style: context.textTheme.labelLarge, + ), ), if (serverInfoState.versionStatus == VersionStatus.serverOutOfDate || serverInfoState.versionStatus == VersionStatus.clientOutOfDate) ...[ - const Spacer(), + const SizedBox(width: 8), TextButton( onPressed: openUpdateLink, style: TextButton.styleFrom(