Skip to content

Commit 3578c4e

Browse files
authored
fix: hide comments on premium posts and reduce font size (#1149)
1 parent 8734e4f commit 3578c4e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/post/Comment.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
</div>
6767
</div>
6868
<!-- Text comment -->
69-
<p class="break-words w-4/5 py-1 mb-6 font-sans text-lg leading-relaxed dark:text-darkPrimaryText">
69+
<p class="break-words w-4/5 py-1 mb-6 font-sans leading-relaxed dark:text-darkPrimaryText">
7070
<span style="white-space: pre-line">{{ content }}</span>
7171
</p>
7272

src/pages/post/_post.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,11 @@
323323
:authorBio="author ? author.bio : ``"
324324
:isFollowed="userIsFollowed"
325325
:toggleFriend="toggleFriend"
326+
:class="showPaywall ? `mb-10` : ``"
326327
/>
327328

328329
<!-- Comments -->
329-
<article v-if="post !== null" class="pt-5 pb-14">
330+
<article v-if="post !== null && !showPaywall" class="pt-5 pb-14">
330331
<!-- Choose reaction -->
331332
<div class="flex flex-row justify-between">
332333
<div class="flex items-center">

0 commit comments

Comments
 (0)