修改评论下沉显示逻辑

master
于肖磊 2026-02-26 10:57:08 +08:00
parent 36b09a2179
commit e31af20dbc
2 changed files with 2 additions and 1 deletions

View File

@ -40,6 +40,7 @@
请选择文件最多可以上传{{ propMaxNum }}
</view>
</template>
<!-- 视频预览 -->
<uni-popup ref="popup" type="center" border-radius="20rpx" class="forminput-popup" mask-background-color="rgba(0,0,0,0.8)">
<view class="wh-auto ht-auto">
<view class="popup-close oh" @tap="popup_close">

View File

@ -327,7 +327,7 @@
return this.show_comment_modal ? (this.move_distance > 0 ? `height: calc(30% + ${this.move_distance}px);` : 'height: 30%;') : 'height: 100%;';
},
commentContentStyle() {
return this.show_comment_modal && this.move_distance > 0 ? `transform: translateY(3px); height: calc(70% - ${this.move_distance}px);` : `transform: translateY(0); height: 70%;`;
return this.show_comment_modal && this.move_distance > 0 ? `transform: translateY(3px); height: calc(70% + 20rpx - ${this.move_distance}px);` : `transform: translateY(0); height: calc(70% + 20rpx);`;
},
current_video_index() {
return this.video_data_list.findIndex(item => item.id == this.current_video_id);