diff --git a/app/soapbox/components/account.tsx b/app/soapbox/components/account.tsx index 83c469450..ab9c7af68 100644 --- a/app/soapbox/components/account.tsx +++ b/app/soapbox/components/account.tsx @@ -5,7 +5,7 @@ import HoverRefWrapper from 'soapbox/components/hover_ref_wrapper'; import VerificationBadge from 'soapbox/components/verification_badge'; import ActionButton from 'soapbox/features/ui/components/action_button'; import { useAppSelector, useOnScreen } from 'soapbox/hooks'; -import { getAcct } from 'soapbox/utils/accounts'; +import { getAcct, getDomain } from 'soapbox/utils/accounts'; import { displayFqn } from 'soapbox/utils/state'; import RelativeTimestamp from './relative_timestamp'; @@ -128,6 +128,9 @@ const Account = ({ const LinkEl: any = showProfileHoverCard ? Link : 'div'; + const favicon = account.pleroma.get('favicon'); + const domain = getDomain(account); + return (
@@ -171,6 +174,12 @@ const Account = ({ @{username} + {favicon && ( + + + + )} + {(timestamp) ? ( <> · diff --git a/app/soapbox/components/status_list.js b/app/soapbox/components/status_list.js index 251aedae4..327820f6f 100644 --- a/app/soapbox/components/status_list.js +++ b/app/soapbox/components/status_list.js @@ -134,19 +134,15 @@ export default class StatusList extends ImmutablePureComponent { const idempotencyKey = statusId.replace(/^ęœ«pending-/, ''); return ( -
-
- -
-
+ ); } diff --git a/app/soapbox/features/status/components/detailed-status.tsx b/app/soapbox/features/status/components/detailed-status.tsx index 0095f0822..739fe4ad0 100644 --- a/app/soapbox/features/status/components/detailed-status.tsx +++ b/app/soapbox/features/status/components/detailed-status.tsx @@ -3,11 +3,9 @@ import React from 'react'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { FormattedMessage, injectIntl, WrappedComponentProps as IntlProps } from 'react-intl'; import { FormattedDate } from 'react-intl'; -import { Link } from 'react-router-dom'; import Icon from 'soapbox/components/icon'; import QuotedStatus from 'soapbox/features/status/containers/quoted_status_container'; -import { getDomain } from 'soapbox/utils/accounts'; import MediaGallery from '../../../components/media_gallery'; import StatusContent from '../../../components/status_content'; @@ -110,9 +108,6 @@ class DetailedStatus extends ImmutablePureComponent
- {typeof favicon === 'string' && ( -
- - - -
- )} - {statusTypeIcon} diff --git a/app/soapbox/features/ui/components/pending_status.js b/app/soapbox/features/ui/components/pending_status.js index 05ec179af..e8da15a73 100644 --- a/app/soapbox/features/ui/components/pending_status.js +++ b/app/soapbox/features/ui/components/pending_status.js @@ -3,17 +3,14 @@ import React from 'react'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { connect } from 'react-redux'; -import { Link, NavLink } from 'react-router-dom'; -import Avatar from 'soapbox/components/avatar'; -import DisplayName from 'soapbox/components/display_name'; -import RelativeTimestamp from 'soapbox/components/relative_timestamp'; import StatusContent from 'soapbox/components/status_content'; import StatusReplyMentions from 'soapbox/components/status_reply_mentions'; +import { HStack } from 'soapbox/components/ui'; +import AccountContainer from 'soapbox/containers/account_container'; import PlaceholderCard from 'soapbox/features/placeholder/components/placeholder_card'; import PlaceholderMediaGallery from 'soapbox/features/placeholder/components/placeholder_media_gallery'; import QuotedStatus from 'soapbox/features/status/containers/quoted_status_container'; -import { getDomain } from 'soapbox/utils/accounts'; import { buildStatus } from '../util/pending_status_builder'; @@ -56,50 +53,36 @@ class PendingStatus extends ImmutablePureComponent { if (!status) return null; if (!status.get('account')) return null; - const favicon = status.getIn(['account', 'pleroma', 'favicon']); - const domain = getDomain(status.get('account')); - return ( -
-
-
-
-
- - - - - {favicon && -
- - - -
} - -
-
- - - -
- - - -
+
+
+
+
+ + +
- +
+ - + - {this.renderMedia()} - {status.get('poll') && } + {this.renderMedia()} + {status.get('poll') && } - {status.get('quote') && } + {status.get('quote') && } +
{/* TODO */} {/* */} diff --git a/app/styles/components/detailed-status.scss b/app/styles/components/detailed-status.scss index a7906dc8b..1b14592a8 100644 --- a/app/styles/components/detailed-status.scss +++ b/app/styles/components/detailed-status.scss @@ -71,8 +71,7 @@ } } - .svg-icon, - .status__favicon { + .svg-icon { margin-right: 5px; } } diff --git a/app/styles/components/status.scss b/app/styles/components/status.scss index 5edbe2e52..6a914daa9 100644 --- a/app/styles/components/status.scss +++ b/app/styles/components/status.scss @@ -656,7 +656,3 @@ a.status-card { bottom: 0; } } - -.pending-status { - opacity: 0.5; -}