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 1/3] 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} - + From d00a50bf7c97d03008a278df27fed149a4de2144 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 5 Sep 2022 17:33:08 -0500 Subject: [PATCH 2/3] sw.js: whitelist Phoenix LiveDashboard --- webpack/production.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webpack/production.js b/webpack/production.js index 9bd16e045..e1d833abc 100644 --- a/webpack/production.js +++ b/webpack/production.js @@ -113,6 +113,7 @@ module.exports = merge(sharedConfig, { '/objects', '/ostatus_subscribe', '/pghero', + '/phoenix', '/pleroma', '/proxy', '/relay', From 57b2527b55c957720750f77e6892edcea579d0bc Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 6 Sep 2022 13:09:31 -0500 Subject: [PATCH 3/3] StatusActionBar: copy status.url --> status.uri --- app/soapbox/components/status-action-bar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/soapbox/components/status-action-bar.tsx b/app/soapbox/components/status-action-bar.tsx index c07bf818d..5bce513a5 100644 --- a/app/soapbox/components/status-action-bar.tsx +++ b/app/soapbox/components/status-action-bar.tsx @@ -301,12 +301,12 @@ const StatusActionBar: React.FC = ({ }; const handleCopy: React.EventHandler = (e) => { - const { url } = status; + const { uri } = status; const textarea = document.createElement('textarea'); e.stopPropagation(); - textarea.textContent = url; + textarea.textContent = uri; textarea.style.position = 'fixed'; document.body.appendChild(textarea);