Browse Source

优化一些界面

onecold 11 months ago
parent
commit
a041563575
1 changed files with 3 additions and 3 deletions
  1. 3 3
      entry/src/main/ets/view/LocalMusic.ets

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

@@ -3634,7 +3634,7 @@ export struct LocalMusic {
             })
             })
           Column() {
           Column() {
             Text(item.name.startsWith('.') ? item.name.replace(/\./g, '') : item.name)
             Text(item.name.startsWith('.') ? item.name.replace(/\./g, '') : item.name)
-              .fontSize(this.twoFingerType == 1 ? 14 : this.twoFingerType == 2 ? 16 : 18)
+              .fontSize(this.twoFingerType == 1 ? 12 : this.twoFingerType == 2 ? 15 : 18)
               .maxLines(1)
               .maxLines(1)
               .fontWeight(FontWeight.Bold)
               .fontWeight(FontWeight.Bold)
               .textOverflow({ overflow: TextOverflow.MARQUEE })//超长滚动
               .textOverflow({ overflow: TextOverflow.MARQUEE })//超长滚动
@@ -3680,7 +3680,7 @@ export struct LocalMusic {
                     .borderRadius(12)
                     .borderRadius(12)
                     .margin({ left: this.twoFingerType == 3 ? 6 : 8 })
                     .margin({ left: this.twoFingerType == 3 ? 6 : 8 })
                     .backgroundColor('#FFC107')
                     .backgroundColor('#FFC107')
-                    .visibility(StrUtil.isEmpty(item.md5Str)?Visibility.None:Visibility.Visible)
+                    .visibility(StrUtil.isEmpty(item.md5Str)||this.twoFingerType==1?Visibility.None:Visibility.Visible)
                 }
                 }
                 .margin({ top: 2 ,right:6})
                 .margin({ top: 2 ,right:6})
                 .visibility((this.modeType == 3 && !this.isCanBack)||(this.modeType == 2 && !this.isCanBack)
                 .visibility((this.modeType == 3 && !this.isCanBack)||(this.modeType == 2 && !this.isCanBack)
@@ -3704,7 +3704,7 @@ export struct LocalMusic {
 
 
           }
           }
 
 
-          .height(this.twoFingerType == 3 ? 60 : this.twoFingerType == 2 ? 55 : 42)
+          .height(this.twoFingerType == 3 ? 60 : this.twoFingerType == 2 ? 48 : 35)
           .width(this.getGridWight())
           .width(this.getGridWight())
           .justifyContent(FlexAlign.Center)
           .justifyContent(FlexAlign.Center)
           .margin({
           .margin({