From 4ae06a4dcf850739911d023f3aff57ece6840124 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Thu, 29 Aug 2024 21:14:47 +0800 Subject: [PATCH] chore: update translations --- .../setting/workspace/member_list.dart | 36 ++++++++++++++++--- frontend/resources/translations/en.json | 8 ++--- 2 files changed, 35 insertions(+), 9 deletions(-) diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/setting/workspace/member_list.dart b/frontend/appflowy_flutter/lib/mobile/presentation/setting/workspace/member_list.dart index 1d9f250d3a..306b241d35 100644 --- a/frontend/appflowy_flutter/lib/mobile/presentation/setting/workspace/member_list.dart +++ b/frontend/appflowy_flutter/lib/mobile/presentation/setting/workspace/member_list.dart @@ -5,6 +5,7 @@ import 'package:appflowy/mobile/presentation/widgets/widgets.dart'; import 'package:appflowy/shared/af_role_pb_extension.dart'; import 'package:appflowy/workspace/presentation/settings/widgets/members/workspace_member_bloc.dart'; import 'package:appflowy_backend/protobuf/flowy-user/protobuf.dart'; +import 'package:appflowy_editor/appflowy_editor.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:flowy_infra_ui/flowy_infra_ui.dart'; import 'package:flutter/material.dart'; @@ -72,10 +73,9 @@ class _MemberItem extends StatelessWidget { final canDelete = myRole.canDelete && member.email != userProfile.email; final textColor = member.role.isOwner ? Theme.of(context).hintColor : null; - Widget child = Container( - height: 48, - padding: const EdgeInsets.symmetric(horizontal: 16.0), - child: Row( + Widget child; + if (PlatformExtension.isDesktop) { + child = Row( children: [ Expanded( child: FlowyText.medium( @@ -93,7 +93,33 @@ class _MemberItem extends StatelessWidget { ), ), ], - ), + ); + } else { + child = Row( + children: [ + Expanded( + child: FlowyText.medium( + member.name, + color: textColor, + fontSize: 15.0, + overflow: TextOverflow.ellipsis, + ), + ), + const HSpace(36.0), + FlowyText.medium( + member.role.description, + color: textColor, + fontSize: 15.0, + textAlign: TextAlign.end, + ), + ], + ); + } + + child = Container( + height: 48, + padding: const EdgeInsets.symmetric(horizontal: 16.0), + child: child, ); if (canDelete) { diff --git a/frontend/resources/translations/en.json b/frontend/resources/translations/en.json index 681ca0c759..c08a397ed9 100644 --- a/frontend/resources/translations/en.json +++ b/frontend/resources/translations/en.json @@ -288,10 +288,10 @@ "minutesAgo": "{count} minutes ago", "lastViewed": "Last viewed", "favoriteAt": "Favorited", - "emptyRecent": "No Recent Documents", - "emptyRecentDescription": "As you view documents, they will appear here for easy retrieval", - "emptyFavorite": "No Favorite Documents", - "emptyFavoriteDescription": "Start exploring and mark documents as favorites. They’ll be listed here for quick access!", + "emptyRecent": "No Recent Pages", + "emptyRecentDescription": "As you view pages, they will appear here for easy retrieval.", + "emptyFavorite": "No Favorite Pages", + "emptyFavoriteDescription": "Mark pages as favorites—they'll be listed here for quick access!", "removePageFromRecent": "Remove this page from the Recent?", "removeSuccess": "Removed successfully", "favoriteSpace": "Favorites",