parent
fb6df029f3
commit
b7748d849b
|
@ -18,6 +18,9 @@
|
||||||
{#if spoilerText}
|
{#if spoilerText}
|
||||||
<StatusSpoiler {...params} on:recalculateHeight />
|
<StatusSpoiler {...params} on:recalculateHeight />
|
||||||
{/if}
|
{/if}
|
||||||
|
{#if !showContent}
|
||||||
|
<StatusMentions {...params} />
|
||||||
|
{/if}
|
||||||
{#if showContent || contentPreloaded}
|
{#if showContent || contentPreloaded}
|
||||||
<StatusContent {...params} shown={showContent}/>
|
<StatusContent {...params} shown={showContent}/>
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -44,6 +47,7 @@
|
||||||
"sidebar author-name author-handle relative-date"
|
"sidebar author-name author-handle relative-date"
|
||||||
"sidebar spoiler spoiler spoiler"
|
"sidebar spoiler spoiler spoiler"
|
||||||
"sidebar spoiler-btn spoiler-btn spoiler-btn"
|
"sidebar spoiler-btn spoiler-btn spoiler-btn"
|
||||||
|
"sidebar mentions mentions mentions"
|
||||||
"sidebar content content content"
|
"sidebar content content content"
|
||||||
"media media media media"
|
"media media media media"
|
||||||
"....... toolbar toolbar toolbar"
|
"....... toolbar toolbar toolbar"
|
||||||
|
@ -67,6 +71,7 @@
|
||||||
"sidebar author-handle"
|
"sidebar author-handle"
|
||||||
"spoiler spoiler"
|
"spoiler spoiler"
|
||||||
"spoiler-btn spoiler-btn"
|
"spoiler-btn spoiler-btn"
|
||||||
|
"mentions mentions"
|
||||||
"content content"
|
"content content"
|
||||||
"media media"
|
"media media"
|
||||||
"details details"
|
"details details"
|
||||||
|
@ -98,6 +103,7 @@
|
||||||
import StatusContent from './StatusContent.html'
|
import StatusContent from './StatusContent.html'
|
||||||
import StatusSpoiler from './StatusSpoiler.html'
|
import StatusSpoiler from './StatusSpoiler.html'
|
||||||
import StatusComposeBox from './StatusComposeBox.html'
|
import StatusComposeBox from './StatusComposeBox.html'
|
||||||
|
import StatusMentions from './StatusMentions.html'
|
||||||
import { store } from '../../_store/store'
|
import { store } from '../../_store/store'
|
||||||
import { goto } from 'sapper/runtime.js'
|
import { goto } from 'sapper/runtime.js'
|
||||||
import { registerClickDelegate } from '../../_utils/delegate'
|
import { registerClickDelegate } from '../../_utils/delegate'
|
||||||
|
@ -136,7 +142,8 @@
|
||||||
StatusMediaAttachments,
|
StatusMediaAttachments,
|
||||||
StatusContent,
|
StatusContent,
|
||||||
StatusSpoiler,
|
StatusSpoiler,
|
||||||
StatusComposeBox
|
StatusComposeBox,
|
||||||
|
StatusMentions
|
||||||
},
|
},
|
||||||
data: () => ({
|
data: () => ({
|
||||||
notification: void 0,
|
notification: void 0,
|
||||||
|
|
30
routes/_components/status/StatusMentions.html
Normal file
30
routes/_components/status/StatusMentions.html
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{#if mentions.length}
|
||||||
|
<div class="status-mentions">
|
||||||
|
<p>
|
||||||
|
{#each mentions as mention, i}
|
||||||
|
{#if i > 0}
|
||||||
|
|
||||||
|
{/if}
|
||||||
|
<a href="/accounts/{mention.id}"
|
||||||
|
title="@{mention.acct}"
|
||||||
|
focus-key="status-mention-link-{uuid}-{mention.id}">
|
||||||
|
@{mention.acct}
|
||||||
|
</a>
|
||||||
|
{/each}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
<style>
|
||||||
|
.status-mentions {
|
||||||
|
grid-area: mentions;
|
||||||
|
margin: 10px 0 10px 5px;
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
computed: {
|
||||||
|
mentions: ({ originalStatus }) => originalStatus.mentions || []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
Loading…
Reference in a new issue