Просмотр исходного кода

🐛 fix(category): 修复分类侧边栏文字溢出问题
- 移除category-sidebar-item__text的text-overflow类,解决文字显示异常问题

💄 style(index): 添加高度样式类
- 新增.height130样式类,设置高度为130rpx

✨ feat(index): 优化首页布局
- 在首页底部添加空白占位元素,使用height130类调整页面布局

yourname 1 месяц назад
Родитель
Сommit
16e3891ca1

+ 1 - 1
mini/src/components/category/CategorySidebarItem/index.tsx

@@ -105,7 +105,7 @@ const CategorySidebarItem: React.FC<CategorySidebarItemProps> = (props) => {
         hoverStayTime={70}
         onClick={handleClick}
       >
-        <View className="category-sidebar-item__text text-overflow">
+        <View className="category-sidebar-item__text">
           {title || children}
         </View>
       </View>

+ 3 - 0
mini/src/pages/index/index.css

@@ -99,4 +99,7 @@
 .no-more-text {
   color: #999;
   font-size: 24rpx;
+}
+.height130 {
+  height: 130rpx;
 }

+ 1 - 0
mini/src/pages/index/index.tsx

@@ -255,6 +255,7 @@ const HomePage: React.FC = () => {
               )}
             </>
           )}
+          <View className='height130'></View>
         </View>
       </ScrollView>
     </TabBarLayout>