mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-21 00:29:47 +00:00
Add a border above the timeline hint for statuses with replies (#31387)
This commit is contained in:
parent
b42661ba95
commit
7e501c59c2
|
@ -1,12 +1,15 @@
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
|
||||||
|
import classNames from 'classnames';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
resource: JSX.Element;
|
resource: JSX.Element;
|
||||||
url: string;
|
url: string;
|
||||||
|
className?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const TimelineHint: React.FC<Props> = ({ resource, url }) => (
|
export const TimelineHint: React.FC<Props> = ({ className, resource, url }) => (
|
||||||
<div className='timeline-hint'>
|
<div className={classNames('timeline-hint', className)}>
|
||||||
<strong>
|
<strong>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='timeline_hint.remote_resource_not_displayed'
|
id='timeline_hint.remote_resource_not_displayed'
|
||||||
|
|
|
@ -629,7 +629,7 @@ class Status extends ImmutablePureComponent {
|
||||||
const isIndexable = !status.getIn(['account', 'noindex']);
|
const isIndexable = !status.getIn(['account', 'noindex']);
|
||||||
|
|
||||||
if (!isLocal) {
|
if (!isLocal) {
|
||||||
remoteHint = <TimelineHint url={status.get('url')} resource={<FormattedMessage id='timeline_hint.resources.replies' defaultMessage='Some replies' />} />;
|
remoteHint = <TimelineHint className={classNames(!!descendants && 'timeline-hint--with-descendants')} url={status.get('url')} resource={<FormattedMessage id='timeline_hint.resources.replies' defaultMessage='Some replies' />} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
const handlers = {
|
const handlers = {
|
||||||
|
|
|
@ -4248,6 +4248,10 @@ a.status-card {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.timeline-hint--with-descendants {
|
||||||
|
border-top: 1px solid var(--background-border-color);
|
||||||
|
}
|
||||||
|
|
||||||
.regeneration-indicator {
|
.regeneration-indicator {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|
Loading…
Reference in a new issue