From 6f69157269b27c4bae9730334f93f295ef0d4b94 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 6 Jul 2023 21:12:54 -0500 Subject: Post UI updates (Profile Preview on mobile) (#990) * Update postmeta to put the timestamp on the right side on mobile * Drop the two-line PostMeta mode * Add ProfilePreview modal * Tune PostMeta to give the best behavior possible for a given platform * Remove old showFollowBtn attributes * Fix style issue * Switch the follow button in the profile header to use the inverted color for consistency with the rest of the app * Fix lint * Fix darkmode * Tune the profile preview footer * Better analytics choice --- src/view/com/post-thread/PostThreadItem.tsx | 38 ++++++++++++----------------- 1 file changed, 16 insertions(+), 22 deletions(-) (limited to 'src/view/com/post-thread/PostThreadItem.tsx') diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index e1c73c0d5..133d38421 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -13,7 +13,7 @@ import {RichText} from '../util/text/RichText' import {Text} from '../util/text/Text' import {PostDropdownBtn} from '../util/forms/DropdownButton' import * as Toast from '../util/Toast' -import {UserAvatar} from '../util/UserAvatar' +import {PreviewableUserAvatar} from '../util/UserAvatar' import {s} from 'lib/styles' import {ago, niceDate} from 'lib/strings/time' import {sanitizeDisplayName} from 'lib/strings/display-names' @@ -163,22 +163,17 @@ export const PostThreadItem = observer(function PostThreadItem({ - - - + - + - - - +