From a38827061b6679a39d719dee72904ffbe49bd8e8 Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期一, 04 八月 2025 11:14:17 +0800 Subject: [PATCH] 登录用户名,以及隐藏专题,新闻页面调整样式 --- pages/news/detail.vue | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pages/news/detail.vue b/pages/news/detail.vue index ceabba6..08bec07 100644 --- a/pages/news/detail.vue +++ b/pages/news/detail.vue @@ -20,7 +20,7 @@ <scroll-view scroll-y class="content-wrapper"> <rich-text :nodes="formatContent(detailData.content)" - class="content" + class="rich-content" ></rich-text> </scroll-view> </template> @@ -121,6 +121,7 @@ padding: 30rpx; min-height: 100vh; background-color: #f8f8f8; + } .loading-container { @@ -164,15 +165,7 @@ } } } - -.content-wrapper { - background-color: #fff; - border-radius: 16rpx; - padding: 30rpx; - box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05); - height: calc(100vh - 300rpx); - - .content { + .rich-content { font-size: 30rpx; line-height: 1.8; color: #333; @@ -208,5 +201,12 @@ margin: 20rpx 0; } } +.content-wrapper { + background-color: #fff; + border-radius: 16rpx; + padding: 30rpx; + box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05); + height: calc(100vh - 300rpx); + box-sizing: border-box; } </style> \ No newline at end of file -- Gitblit v1.8.0