فهرست منبع

优化GridItem的高度

onecold 10 ماه پیش
والد
کامیت
821c850d7d
1فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 5 5
      entry/src/main/ets/view/LocalMusic.ets

+ 5 - 5
entry/src/main/ets/view/LocalMusic.ets

@@ -4221,7 +4221,7 @@ export struct LocalMusic {
               right: this.currentBreakpoint !== BreakpointTypeEnum.SM ? 40 : 20
             })
           Column() {
-            Text(this.isShowFileName?item.fileName :item.name.startsWith('.') ? item.name.replace(/\./g, '') : item.name)
+            Text(this.isShowFileName&&item.type!=CommonConstants.TYPE_IS_DIR?item.fileName :item.name.startsWith('.') ? item.name.replace(/\./g, '') : item.name)
               .fontSize(this.twoFingerType == 1 ? 12 : this.twoFingerType == 2 ? 15 : 18)
               .maxLines(1)
               .fontWeight(FontWeight.Bold)
@@ -4345,10 +4345,10 @@ export struct LocalMusic {
     let heightG = 222
     switch (this.twoFingerType) {
       case 1:
-        heightG = 118
+        heightG = 143
         break;
       case 2:
-        heightG = 168
+        heightG = 178
         break;
       case 3:
         heightG = 222
@@ -4361,10 +4361,10 @@ export struct LocalMusic {
     let heightG = 150
     switch (this.twoFingerType) {
       case 1:
-        heightG = 55
+        heightG = 80
         break;
       case 2:
-        heightG = 100
+        heightG = 110
         break;
       case 3:
         heightG = 150