From 168cee063607ca2da9a4dedd5bcb04698b0bb9e7 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 9 Aug 2022 18:46:16 -0500 Subject: [PATCH] StatusActionBar: fix styles in Thread --- app/soapbox/components/status-action-bar.tsx | 12 ++++++++++-- app/soapbox/components/status-action-button.tsx | 4 +++- app/soapbox/components/status.tsx | 4 +++- app/soapbox/features/status/index.tsx | 7 ++++++- 4 files changed, 22 insertions(+), 5 deletions(-) diff --git a/app/soapbox/components/status-action-bar.tsx b/app/soapbox/components/status-action-bar.tsx index 76e4c5e83..a324fe344 100644 --- a/app/soapbox/components/status-action-bar.tsx +++ b/app/soapbox/components/status-action-bar.tsx @@ -1,3 +1,4 @@ +import classNames from 'classnames'; import { List as ImmutableList } from 'immutable'; import React from 'react'; import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; @@ -82,7 +83,8 @@ interface IStatusActionBar { status: Status, withDismiss?: boolean, withLabels?: boolean, - expandable?: boolean + expandable?: boolean, + space?: 'expand' | 'compact', } const StatusActionBar: React.FC = ({ @@ -90,6 +92,7 @@ const StatusActionBar: React.FC = ({ withDismiss = false, withLabels = false, expandable = true, + space = 'compact', }) => { const intl = useIntl(); const history = useHistory(); @@ -584,7 +587,12 @@ const StatusActionBar: React.FC = ({ const canShare = ('share' in navigator) && status.visibility === 'public'; return ( -
+
= (props) => { {quote} {!hideActionBar && ( - +
+ +
)}
diff --git a/app/soapbox/features/status/index.tsx b/app/soapbox/features/status/index.tsx index cd38e56b8..baf6b61ae 100644 --- a/app/soapbox/features/status/index.tsx +++ b/app/soapbox/features/status/index.tsx @@ -484,7 +484,12 @@ const Thread: React.FC = (props) => {
- +