fix(mobile): versionStatus.message text overflow (#24504)

pull/24509/head
idubnori 2025-12-11 07:18:55 +07:00 committed by GitHub
parent b052893a1e
commit 5e5bb7e87d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 7 deletions

@ -53,16 +53,18 @@ class ServerUpdateNotification extends HookConsumerWidget {
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Text( Expanded(
serverInfoState.versionStatus.message, child: Text(
textAlign: TextAlign.start, serverInfoState.versionStatus.message,
maxLines: 3, textAlign: TextAlign.start,
overflow: TextOverflow.ellipsis, maxLines: 3,
style: context.textTheme.labelLarge, overflow: TextOverflow.ellipsis,
style: context.textTheme.labelLarge,
),
), ),
if (serverInfoState.versionStatus == VersionStatus.serverOutOfDate || if (serverInfoState.versionStatus == VersionStatus.serverOutOfDate ||
serverInfoState.versionStatus == VersionStatus.clientOutOfDate) ...[ serverInfoState.versionStatus == VersionStatus.clientOutOfDate) ...[
const Spacer(), const SizedBox(width: 8),
TextButton( TextButton(
onPressed: openUpdateLink, onPressed: openUpdateLink,
style: TextButton.styleFrom( style: TextButton.styleFrom(