mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-09-12 16:40:40 +08:00
style: 调整评论列表及页面的内边距样式
1. 移除uh-comment-list组件自带的左右内边距 2. 在文章详情页的评论区域新增外层容器添加左右内边距 3. 给瞬间详情页的卡片添加底部间距,优化正文文字样式
This commit is contained in:
@@ -114,7 +114,7 @@
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view class="w-full box-border px-2">
|
||||
<view class="w-full box-border">
|
||||
<view class="uh-global-card-glass box-border uh-shadow-xs rounded-xl p-3">
|
||||
<!-- 顶部区域 -->
|
||||
<uh-section-title>
|
||||
|
||||
@@ -580,11 +580,13 @@
|
||||
</view>
|
||||
|
||||
<!-- 评论区域 -->
|
||||
<view class="box-border px-2">
|
||||
<uh-comment-list v-if="calcIsShowComment && result" :disallow-comment="!result.spec.allowComment"
|
||||
:post-name="result.metadata.name" :post="result" @on-comment="handleOnComment"
|
||||
@on-comment-detail="handleOnShowCommentDetail" @on-loaded="handleCommentLoaded" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 悬浮操作 -->
|
||||
<view class="fixed bottom-8 left-1/2 z-10 flex items-center justify-center pb-safe -translate-x-1/2">
|
||||
|
||||
@@ -281,7 +281,7 @@
|
||||
|
||||
<!-- 瞬间内页(日记式:大字日期刊头 + 阅读正文 + 媒体 + 互动脚注) -->
|
||||
<view v-else-if="moment" class="box-border px-3 pt-2 pb-12">
|
||||
<view class="uh-global-card-glass uh-shadow-xs overflow-hidden rounded-2xl box-border pb-4">
|
||||
<view class="mb-3 uh-global-card-glass uh-shadow-xs overflow-hidden rounded-2xl box-border pb-4">
|
||||
<!-- 刊头:大字日期 -->
|
||||
<view v-if="moment.spec.releaseTime" class="px-4 pt-4">
|
||||
<view class="text-[56rpx] text-gray-900 font-bold leading-tight">
|
||||
@@ -308,7 +308,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 正文 -->
|
||||
<view class="content px-4 mt-6">
|
||||
<view class="content px-4 mt-6 text-gray-900 text-sm">
|
||||
<mp-html lazy-load :domain="markdownConfig.domain ?? ''"
|
||||
:loading-img="markdownConfig.loadingGif" scroll-table selectable
|
||||
:tag-style="markdownConfig.tagStyle" :container-style="markdownConfig.containStyle"
|
||||
|
||||
Reference in New Issue
Block a user