Update PostContent, add text cw warning

pull/4570/head
Daniel Supernault 2023-07-31 21:15:50 -06:00
rodzic c527858ac4
commit 911504fa54
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 12 dodań i 1 usunięć

Wyświetl plik

@ -138,7 +138,18 @@
<mixed-album-presenter :status="status" v-on:lightbox="toggleLightbox" v-on:togglecw="status.sensitive = false" style="border-radius:15px !important;object-fit: contain;background-color: #000;overflow: hidden;align-items:center" :class="{ fixedHeight: fixedHeight }"></mixed-album-presenter>
</div>
<div v-else-if="status.pf_type === 'text'"></div>
<div v-else-if="status.pf_type === 'text'">
<div v-if="status.sensitive" class="border m-3 p-5 rounded-lg">
<p class="text-center">
<i class="far fa-eye-slash fa-2x"></i>
</p>
<p class="text-center lead font-weight-bold mb-0">Sensitive Content</p>
<p class="text-center">{{ status.spoiler_text && status.spoiler_text.length ? status.spoiler_text : 'This post may contain sensitive content' }}</p>
<p class="text-center mb-0">
<button class="btn btn-primary btn-sm font-weight-bold" @click="status.sensitive = false">See post</button>
</p>
</div>
</div>
<div v-else class="bg-light rounded-lg d-flex align-items-center justify-content-center" style="height: 400px;">
<div>