This commit is contained in:
Nolan Lawson 2018-02-04 12:10:02 -08:00
parent 82635d8291
commit faae26863f
2 changed files with 8 additions and 5 deletions

View file

@ -1,4 +1,4 @@
<article class="status-article {{originalStatus.visibility === 'direct' ? 'status-direct' : ''}} {{isStatusInOwnThread ? 'status-in-own-thread' : ''}}" <article class="status-article {{originalStatus.visibility === 'direct' ? 'status-direct' : ''}}"
tabindex="0" tabindex="0"
aria-posinset="{{index}}" aria-setsize="{{length}}" aria-posinset="{{index}}" aria-setsize="{{length}}"
on:recalculateHeight> on:recalculateHeight>
@ -11,7 +11,7 @@
<StatusSpoiler status="{{originalStatus}}" :spoilerShown on:recalculateHeight /> <StatusSpoiler status="{{originalStatus}}" :spoilerShown on:recalculateHeight />
{{/if}} {{/if}}
{{#if !originalStatus.spoiler_text || spoilerShown}} {{#if !originalStatus.spoiler_text || spoilerShown}}
<StatusContent status="{{originalStatus}}" /> <StatusContent status="{{originalStatus}}" :isStatusInOwnThread />
{{/if}} {{/if}}
{{#if hasMedia}} {{#if hasMedia}}
<StatusMediaAttachments status="{{originalStatus}}" on:recalculateHeight /> <StatusMediaAttachments status="{{originalStatus}}" on:recalculateHeight />

View file

@ -1,5 +1,8 @@
<div class="status-content" ref:node> <div
{{{emojifiedContent}}} class="status-content {{isStatusInOwnThread ? 'status-in-own-thread' : ''}}"
ref:node
>
{{{emojifiedContent}}}
</div> </div>
<style> <style>
.status-content { .status-content {
@ -11,7 +14,7 @@
font-size: 0.9em; font-size: 0.9em;
} }
:global(.status-in-own-thread .status-content) { .status-content.status-in-own-thread {
font-size: 1.3em; font-size: 1.3em;
margin: 20px 10px 20px 5px; margin: 20px 10px 20px 5px;
} }