From c488ad83a8269589e04ac3549c7df254fb216b24 Mon Sep 17 00:00:00 2001 From: hajimi Date: Sun, 2 Aug 2026 20:44:22 +0800 Subject: [PATCH] fix: show expand control for locked post preview --- uniapp/src/packages_community/pages/post_detail.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/uniapp/src/packages_community/pages/post_detail.vue b/uniapp/src/packages_community/pages/post_detail.vue index f2e9217..6eaaf6c 100644 --- a/uniapp/src/packages_community/pages/post_detail.vue +++ b/uniapp/src/packages_community/pages/post_detail.vue @@ -72,6 +72,7 @@ {{ postPreview.summary }} {{ previewExpanded ? '收起' : '展开' }} @@ -464,6 +465,7 @@ const bilingualBlocks = computed(() => { }) const hasBilingualContent = computed(() => bilingualBlocks.value.length > 0) const previewCanExpand = computed(() => { + if (post.value?.is_locked) return true if (hasBilingualContent.value) return bilingualBlocks.value.length > 1 const summary = postPreview.value.summary @@ -1111,6 +1113,15 @@ const formatCommentTime = (value: any) => { color: #1468f5; font-size: 27rpx; white-space: nowrap; + + &--collapsed { + position: absolute; + right: 0; + bottom: 0; + margin-left: 0; + padding-left: 38rpx; + background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 38%); + } } &__bilingual {