Skip to content

Commit

Permalink
flavors: glitch: show emojified display name in quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
kaniini committed Dec 26, 2022
1 parent 005256a commit 08aecd2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app/javascript/flavours/glitch/components/status_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,26 @@ export default class StatusContent extends React.PureComponent {
if (status.get('quote', null) !== null) {
let quoteStatus = status.get('quote');
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 = (
<div class="status__quote">
<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} />
</blockquote>
</div>
Expand Down
9 changes: 9 additions & 0 deletions app/javascript/flavours/glitch/styles/components/status.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@
}
}

.status__quote {
padding-bottom: 0.5em;
}

.status__quote,
.status__content__text,
.e-content {
Expand Down Expand Up @@ -124,6 +128,11 @@
font-style: italic;
}

i[role=img] {
font-style: normal;
padding-right: 0.25em;
}

sub {
font-size: smaller;
vertical-align: sub;
Expand Down

0 comments on commit 08aecd2

Please sign in to comment.