sforkowany z mirror/soapbox
Swap out a few more icons for svg icons
rodzic
a38963abba
commit
4464a7f19e
|
@ -94,9 +94,8 @@ export default class DetailedStatus extends ImmutablePureComponent {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
let media = '';
|
let media = null;
|
||||||
const poll = '';
|
let statusTypeIcon = null;
|
||||||
let statusTypeIcon = '';
|
|
||||||
|
|
||||||
if (this.props.measureHeight) {
|
if (this.props.measureHeight) {
|
||||||
outerStyle.height = `${this.state.height}px`;
|
outerStyle.height = `${this.state.height}px`;
|
||||||
|
@ -155,9 +154,9 @@ export default class DetailedStatus extends ImmutablePureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status.get('visibility') === 'direct') {
|
if (status.get('visibility') === 'direct') {
|
||||||
statusTypeIcon = <Icon id='envelope' />;
|
statusTypeIcon = <Icon src={require('@tabler/icons/icons/mail.svg')} />;
|
||||||
} else if (status.get('visibility') === 'private') {
|
} else if (status.get('visibility') === 'private') {
|
||||||
statusTypeIcon = <Icon id='lock' />;
|
statusTypeIcon = <Icon src={require('@tabler/icons/icons/lock.svg')} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -193,11 +192,11 @@ export default class DetailedStatus extends ImmutablePureComponent {
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{media}
|
{media}
|
||||||
{poll}
|
|
||||||
|
|
||||||
<div className='detailed-status__meta'>
|
<div className='detailed-status__meta'>
|
||||||
<StatusInteractionBar status={status} />
|
<StatusInteractionBar status={status} />
|
||||||
<div>
|
|
||||||
|
<div className='detailed-status__timestamp'>
|
||||||
{favicon &&
|
{favicon &&
|
||||||
<div className='status__favicon'>
|
<div className='status__favicon'>
|
||||||
<Link to={`/timeline/${domain}`}>
|
<Link to={`/timeline/${domain}`}>
|
||||||
|
@ -205,7 +204,9 @@ export default class DetailedStatus extends ImmutablePureComponent {
|
||||||
</Link>
|
</Link>
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
{statusTypeIcon}<a className='detailed-status__datetime' href={status.get('url')} target='_blank' rel='noopener'>
|
{statusTypeIcon}
|
||||||
|
|
||||||
|
<a className='detailed-status__datetime' href={status.get('url')} target='_blank' rel='noopener'>
|
||||||
<FormattedDate value={new Date(status.get('created_at'))} hour12={false} year='numeric' month='short' day='2-digit' hour='2-digit' minute='2-digit' />
|
<FormattedDate value={new Date(status.get('created_at'))} hour12={false} year='numeric' month='short' day='2-digit' hour='2-digit' minute='2-digit' />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -96,7 +96,6 @@ class ProfileInfoPanel extends ImmutablePureComponent {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const lockedIcon = account.get('locked') ? (<Icon id='lock' title={intl.formatMessage(messages.account_locked)} />) : '';
|
|
||||||
const content = { __html: account.get('note_emojified') };
|
const content = { __html: account.get('note_emojified') };
|
||||||
const fields = account.get('fields');
|
const fields = account.get('fields');
|
||||||
const deactivated = !account.getIn(['pleroma', 'is_active'], true);
|
const deactivated = !account.getIn(['pleroma', 'is_active'], true);
|
||||||
|
@ -114,7 +113,12 @@ class ProfileInfoPanel extends ImmutablePureComponent {
|
||||||
<span dangerouslySetInnerHTML={displayNameHtml} className='profile-info-panel__name-content' />
|
<span dangerouslySetInnerHTML={displayNameHtml} className='profile-info-panel__name-content' />
|
||||||
{verified && <VerificationBadge />}
|
{verified && <VerificationBadge />}
|
||||||
{account.get('bot') && <Badge slug='bot' title={intl.formatMessage(messages.bot)} />}
|
{account.get('bot') && <Badge slug='bot' title={intl.formatMessage(messages.bot)} />}
|
||||||
{ <small>@{getAcct(account, displayFqn)} {lockedIcon}</small> }
|
<small>
|
||||||
|
@{getAcct(account, displayFqn)}
|
||||||
|
{account.get('locked') && (
|
||||||
|
<Icon src={require('@tabler/icons/icons/lock.svg')} title={intl.formatMessage(messages.account_locked)} />
|
||||||
|
)}
|
||||||
|
</small>
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -56,9 +56,24 @@
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
i {
|
.detailed-status__timestamp {
|
||||||
margin-right: 0.4em;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.svg-icon {
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
|
||||||
|
svg {
|
||||||
|
stroke-width: 1.3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.svg-icon,
|
||||||
|
.status__favicon {
|
||||||
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,11 +167,6 @@
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detailed-status .status__favicon {
|
|
||||||
float: left;
|
|
||||||
margin-right: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.thread {
|
.thread {
|
||||||
@include standard-panel;
|
@include standard-panel;
|
||||||
border-top-left-radius: 0;
|
border-top-left-radius: 0;
|
||||||
|
|
|
@ -53,6 +53,12 @@
|
||||||
height: 22px;
|
height: 22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.svg-icon {
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
margin-left: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
span:first-of-type {
|
span:first-of-type {
|
||||||
font-size: 20px !important;
|
font-size: 20px !important;
|
||||||
|
@ -63,7 +69,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
small {
|
small {
|
||||||
display: block;
|
display: flex;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
color: var(--primary-text-color--faint);
|
color: var(--primary-text-color--faint);
|
||||||
|
|
Ładowanie…
Reference in New Issue