forked from treehouse/mastodon
flavors: glitch: show emojified display name in quotes
parent
005256ae8c
commit
08aecd24ba
|
@ -280,10 +280,26 @@ export default class StatusContent extends React.PureComponent {
|
||||||
if (status.get('quote', null) !== null) {
|
if (status.get('quote', null) !== null) {
|
||||||
let quoteStatus = status.get('quote');
|
let quoteStatus = status.get('quote');
|
||||||
let quoteStatusContent = { __html: quoteStatus.get('contentHtml') };
|
let quoteStatusContent = { __html: quoteStatus.get('contentHtml') };
|
||||||
|
let quoteStatusAccount = quoteStatus.get('account');
|
||||||
|
let quoteStatusDisplayName = { __html: quoteStatusAccount.get('display_name_html') };
|
||||||
|
|
||||||
|
console.log('QUOTE:', quoteStatus);
|
||||||
|
console.log('ACCOUNT:', quoteStatusAccount);
|
||||||
|
|
||||||
quote = (
|
quote = (
|
||||||
<div class="status__quote">
|
<div class="status__quote">
|
||||||
<blockquote>
|
<blockquote>
|
||||||
|
<bdi>
|
||||||
|
<span class="quote-display-name">
|
||||||
|
<Icon
|
||||||
|
fixedWidth
|
||||||
|
id='quote-right'
|
||||||
|
aria-hidden='true'
|
||||||
|
key='icon-quote-right' />
|
||||||
|
<strong class="display-name__html"
|
||||||
|
dangerouslySetInnerHTML={quoteStatusDisplayName} />
|
||||||
|
</span>
|
||||||
|
</bdi>
|
||||||
<div dangerouslySetInnerHTML={quoteStatusContent} />
|
<div dangerouslySetInnerHTML={quoteStatusContent} />
|
||||||
</blockquote>
|
</blockquote>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -77,6 +77,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.status__quote {
|
||||||
|
padding-bottom: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
.status__quote,
|
.status__quote,
|
||||||
.status__content__text,
|
.status__content__text,
|
||||||
.e-content {
|
.e-content {
|
||||||
|
@ -124,6 +128,11 @@
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
i[role=img] {
|
||||||
|
font-style: normal;
|
||||||
|
padding-right: 0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
sub {
|
sub {
|
||||||
font-size: smaller;
|
font-size: smaller;
|
||||||
vertical-align: sub;
|
vertical-align: sub;
|
||||||
|
|
Loading…
Reference in New Issue