💄 Optimize UX
This commit is contained in:
		| @@ -238,10 +238,17 @@ class ChatListBodyWidget extends HookConsumerWidget { | ||||
|                         room: item, | ||||
|                         isDirect: item.type == 1, | ||||
|                         onTap: () { | ||||
|                           context.pushNamed( | ||||
|                             'chatRoom', | ||||
|                             pathParameters: {'id': item.id}, | ||||
|                           ); | ||||
|                           if (isWideScreen(context)) { | ||||
|                             context.replaceNamed( | ||||
|                               'chatRoom', | ||||
|                               pathParameters: {'id': item.id}, | ||||
|                             ); | ||||
|                           } else { | ||||
|                             context.pushNamed( | ||||
|                               'chatRoom', | ||||
|                               pathParameters: {'id': item.id}, | ||||
|                             ); | ||||
|                           } | ||||
|                         }, | ||||
|                       ); | ||||
|                     }, | ||||
|   | ||||
| @@ -756,15 +756,21 @@ class PostBody extends ConsumerWidget { | ||||
|           crossAxisAlignment: CrossAxisAlignment.center, | ||||
|           children: [ | ||||
|             const Icon(Symbols.edit, size: 16), | ||||
|             Text( | ||||
|               'editedAt'.tr( | ||||
|                 args: [ | ||||
|             Tooltip( | ||||
|               message: | ||||
|                   !isFullPost && isRelativeTime | ||||
|                       ? item.editedAt!.formatRelative(context) | ||||
|                       : item.editedAt!.formatSystem(), | ||||
|                 ], | ||||
|               ), | ||||
|             ).fontSize(13), | ||||
|                       ? item.editedAt!.formatSystem() | ||||
|                       : item.editedAt!.formatRelative(context), | ||||
|               child: Text( | ||||
|                 'editedAt'.tr( | ||||
|                   args: [ | ||||
|                     !isFullPost && isRelativeTime | ||||
|                         ? item.editedAt!.formatRelative(context) | ||||
|                         : item.editedAt!.formatSystem(), | ||||
|                   ], | ||||
|                 ), | ||||
|               ).fontSize(13), | ||||
|             ), | ||||
|           ], | ||||
|         ), | ||||
|       ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user