Browse Source

优化下播放页布局

onecold 8 months ago
parent
commit
fd09177b7f
1 changed files with 4 additions and 4 deletions
  1. 4 4
      entry/src/main/ets/view/LocalMusic.ets

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

@@ -10605,7 +10605,7 @@ export struct LocalMusic {
       }
       .justifyContent(FlexAlign.Center)
       .padding({left:20,right:20})
-      .width('95%')
+      .width(this.isLandscape?'88%':'95%')
       Row() {
         Text(this.currentTime)
           .fontSize(10)
@@ -10617,7 +10617,7 @@ export struct LocalMusic {
           .fontColor(Color.White)
           .margin({right:25})
       }
-      .width('90%')
+      .width(this.isLandscape?'85%':'90%')
       .height(10)
     }
     .width('100%')
@@ -11195,7 +11195,7 @@ export struct LocalMusic {
               }
             })
         }
-        .margin({ left: 15,right:3 })
+        .margin({ left: 8,right:8 })
         .backgroundColor(Color.Transparent)
         .width(45)
         .height(45)
@@ -11204,7 +11204,7 @@ export struct LocalMusic {
 
 
     }
-    .width('90%')
+    .width(this.isLandscape?'83%':'90%')
     .scale({ x: this.scaleValueText, y: this.scaleValueText }) // 添加缩放效果
     .margin({ top: this.isCoverOpacity() ? 10 : isHidden ? 20 : 10 })
     .visibility(this.isCoverOpacity() || isHidden ? Visibility.None : Visibility.Visible)