From 909fed0644c9cd4db64d74d9168e8cbc5b025f82 Mon Sep 17 00:00:00 2001 From: xmflsct Date: Sun, 18 Dec 2022 20:55:33 +0100 Subject: [PATCH] Fixed #575 --- fastlane/metadata/en-US/release_notes.txt | 1 + fastlane/metadata/zh-Hans/release_notes.txt | 1 + src/components/Timeline/Shared/Attachment.tsx | 2 - src/screens/ImagesViewer.tsx | 6 +- src/screens/Tabs/Shared/Account/Header.tsx | 68 +++++++++---------- .../Shared/Account/Information/Avatar.tsx | 35 ++++------ src/utils/navigation/navigators.ts | 4 +- 7 files changed, 56 insertions(+), 61 deletions(-) diff --git a/fastlane/metadata/en-US/release_notes.txt b/fastlane/metadata/en-US/release_notes.txt index 44b82a21..9875bbd6 100644 --- a/fastlane/metadata/en-US/release_notes.txt +++ b/fastlane/metadata/en-US/release_notes.txt @@ -1,2 +1,3 @@ Enjoy toooting! This version includes following improvements and fixes: - Align filter experience with v4.0 and above +- Supports enlarging user's avatar and banner diff --git a/fastlane/metadata/zh-Hans/release_notes.txt b/fastlane/metadata/zh-Hans/release_notes.txt index 352b41ba..d10d84f2 100644 --- a/fastlane/metadata/zh-Hans/release_notes.txt +++ b/fastlane/metadata/zh-Hans/release_notes.txt @@ -1,2 +1,3 @@ toooting愉快!此版本包括以下改进和修复: - 改进过滤体验,与v4.0以上版本一致 +- 支持查看用户的头像和横幅图片 diff --git a/src/components/Timeline/Shared/Attachment.tsx b/src/components/Timeline/Shared/Attachment.tsx index 7f0128ed..e452a09d 100644 --- a/src/components/Timeline/Shared/Attachment.tsx +++ b/src/components/Timeline/Shared/Attachment.tsx @@ -70,7 +70,6 @@ const TimelineAttachment = () => { preview_url: attachment.preview_url, url: attachment.url, remote_url: attachment.remote_url, - blurhash: attachment.blurhash, width: attachment.meta?.original?.width, height: attachment.meta?.original?.height } @@ -90,7 +89,6 @@ const TimelineAttachment = () => { preview_url: attachment.preview_url, url: attachment.url, remote_url: attachment.remote_url, - blurhash: attachment.blurhash, width: attachment.meta?.original?.width, height: attachment.meta?.original?.height } diff --git a/src/screens/ImagesViewer.tsx b/src/screens/ImagesViewer.tsx index 85a9a0b7..b41ed9e6 100644 --- a/src/screens/ImagesViewer.tsx +++ b/src/screens/ImagesViewer.tsx @@ -25,7 +25,7 @@ const ZoomFlatList = createZoomListComponent(FlatList) const ScreenImagesViewer = ({ route: { - params: { imageUrls, id } + params: { imageUrls, id, hideCounter } }, navigation }: RootStackScreenProps<'Screen-ImagesViewer'>) => { @@ -159,7 +159,9 @@ const ScreenImagesViewer = ({ }} > navigation.goBack()} /> - + {!hideCounter ? ( + + ) : null} { - const { colors } = useTheme() - const topInset = useSafeAreaInsets().top +const AccountHeader: React.FC = ({ account }) => { + const { colors } = useTheme() + const topInset = useSafeAreaInsets().top - return ( - - - {edit ? ( - -