Kaynağa Gözat

进一步适配hicar

onecold 11 ay önce
ebeveyn
işleme
d53cd8c070
1 değiştirilmiş dosya ile 3 ekleme ve 4 silme
  1. 3 4
      entry/src/main/ets/view/LocalMusic.ets

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

@@ -3285,6 +3285,7 @@ export struct LocalMusic {
           .onClick(() => {
             if(this.twoFingerType==4){
               this.isGridMusic = false
+              this.twoFingerType=3
             }else{
               this.isGridMusic = !this.isGridMusic
             }
@@ -3464,7 +3465,7 @@ export struct LocalMusic {
         .rowsGap(16) // 行间距
         .cachedCount(6)
         .margin(
-          this.isHiCar()&&(this.windowWidth>1800&&this.windowHeight>=1200)?{bottom:this.bottomBarHeight+98}:
+          this.isHiCar()?{bottom:this.bottomBarHeight+90}:
           {bottom:this.isShowCoverHeader()? 25:
           this.isCoverOpacity()?this.topBarHeight+this.bottomBarHeight+78
             :this.topBarHeight+this.bottomBarHeight+108})
@@ -3915,10 +3916,8 @@ export struct LocalMusic {
     .editMode(true)
     .transition(TransitionEffect.move(TransitionEdge.BOTTOM)
       .animation({ duration: 500, curve: Curve.Ease }))
-    // .margin({ bottom: this.isCoverOpacity() ? 80 : 175 })
     .margin(
-      this.isHiCar()&&(this.windowWidth>1800&&this.windowHeight>=1200)?{bottom:this.bottomBarHeight+98}:
-
+      this.isHiCar()?{bottom:this.bottomBarHeight+98}:
       {
       bottom: this.isCoverOpacity() ? (this.isShowCoverHeader() ? this.topBarHeight+30 : this.topBarHeight+90)
         : (this.isShowCoverHeader() ? this.topBarHeight+45 : this.topBarHeight+128)