Open platform to collect and prioritize feedback
Keep Follow in the post's bottom action bar as well as the menu
Matt Roberts64fe49d7e758
diff --git a/public/components/PostDetails/PostDetails.scss b/public/components/PostDetails/PostDetails.scssindex 60ef91aec..0be6db987 100644--- a/public/components/PostDetails/PostDetails.scss+++ b/public/components/PostDetails/PostDetails.scss@@ -79,6 +79,13 @@border-top: 5px solid var(--colors-blue-500);padding-top: spacing(4);margin-top: spacing(8);++ // Remove flex-grow on mobile so Following button doesn't get pushed to the right+ @include media("sm") {+ .flex-grow {+ display: none;+ }+ }}&__discussion-section {diff --git a/public/components/PostDetails/PostDetails.tsx b/public/components/PostDetails/PostDetails.tsxindex e35a85dbf..c9b568030 100644--- a/public/components/PostDetails/PostDetails.tsx+++ b/public/components/PostDetails/PostDetails.tsx@@ -495,9 +495,19 @@ export const PostDetails: React.FC<PostDetailsProps> = (props) => {{/* Bottom Action Bar */}{!editMode && (<div className="p-show-post__actions">- <ActionButton icon={IconDuplicate} onClick={onActionSelected("copy")}>- <Trans id="action.copylink">Copy link</Trans>- </ActionButton>+ <HStack spacing={0} align="center" className="flex-wrap gap-2">+ <ActionButton icon={IconDuplicate} onClick={onActionSelected("copy")}>+ <Trans id="action.copylink">Copy link</Trans>+ </ActionButton>++ <div className="flex-grow" />++ {Fider.session.isAuthenticated && (+ <ActionButton icon={subscribed ? IconCheck : IconPlus} onClick={toggleSubscription} disabled={Fider.isReadOnly}>+ {subscribed ? <Trans id="label.following">Following</Trans> : <Trans id="label.follow">Follow</Trans>}+ </ActionButton>+ )}+ </HStack></div>)}</div>diff --git a/public/pages/ShowPost/ShowPost.page.scss b/public/pages/ShowPost/ShowPost.page.scssindex d15a75198..eef5501df 100644--- a/public/pages/ShowPost/ShowPost.page.scss+++ b/public/pages/ShowPost/ShowPost.page.scss@@ -75,6 +75,13 @@border-top: 5px solid var(--colors-blue-500);padding-top: spacing(4);margin-top: spacing(8);++ // Remove flex-grow on mobile so Following button doesn't get pushed to the right+ @include media("sm") {+ .flex-grow {+ display: none;+ }+ }}&__discussion-section {