feat: 调整RecommendPostsList组件样式

This commit is contained in:
duanshuwen
2025-10-14 19:52:13 +08:00
parent 4b14ea4f08
commit 03f49a5b48
4 changed files with 5 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
<view class="container">
<ModuleTitle :title="recommendTheme.themeName" />
<view class="container-scroll font-size-0">
<view class="container-scroll font-size-0 scroll-x whitescape-nowrap">
<view
class="card-item bg-white inline-block rounded-20 mr-8"
v-for="(item, index) in recommendTheme.recommendPostsList"

View File

@@ -1,7 +1,4 @@
.container-scroll {
display: flex;
flex-direction: row;
overflow-x: auto;
margin: 4px 0 6px;
}

View File

@@ -18,3 +18,4 @@
@import "./overflow.scss";
@import "./width.scss";
@import "./z-index.scss";
@import "./white-scape.scss";

View File

@@ -0,0 +1,3 @@
.whitescape-nowrap {
white-space: nowrap;
}