From d074553e21b7ae63523231a1e75b78f8479ad97f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Mon, 5 Sep 2022 15:18:15 +0200 Subject: [PATCH] Wrap HStack in some places MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/components/polls/poll-footer.tsx | 2 +- app/soapbox/components/ui/hstack/hstack.tsx | 5 ++++- app/soapbox/features/status/components/detailed-status.tsx | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/soapbox/components/polls/poll-footer.tsx b/app/soapbox/components/polls/poll-footer.tsx index ef4ca2276..dfa91e663 100644 --- a/app/soapbox/components/polls/poll-footer.tsx +++ b/app/soapbox/components/polls/poll-footer.tsx @@ -54,7 +54,7 @@ const PollFooter: React.FC = ({ poll, showResults, selected }): JSX )} - + {poll.pleroma.get('non_anonymous') && ( <> diff --git a/app/soapbox/components/ui/hstack/hstack.tsx b/app/soapbox/components/ui/hstack/hstack.tsx index 3eef11055..f959cdd51 100644 --- a/app/soapbox/components/ui/hstack/hstack.tsx +++ b/app/soapbox/components/ui/hstack/hstack.tsx @@ -42,11 +42,13 @@ interface IHStack { grow?: boolean, /** Extra CSS styles for the
*/ style?: React.CSSProperties + /** Whether to let the flexbox wrap onto multiple lines. */ + wrap?: boolean, } /** Horizontal row of child elements. */ const HStack = forwardRef((props, ref) => { - const { space, alignItems, grow, justifyContent, className, ...filteredProps } = props; + const { space, alignItems, grow, justifyContent, wrap, className, ...filteredProps } = props; return (
((props, ref) => { // @ts-ignore [spaces[space]]: typeof space !== 'undefined', 'flex-grow': grow, + 'flex-wrap': wrap, }, className)} /> ); diff --git a/app/soapbox/features/status/components/detailed-status.tsx b/app/soapbox/features/status/components/detailed-status.tsx index b8fed9255..f484be4cb 100644 --- a/app/soapbox/features/status/components/detailed-status.tsx +++ b/app/soapbox/features/status/components/detailed-status.tsx @@ -99,7 +99,7 @@ const DetailedStatus: React.FC = ({ {quote} - +