ソースを参照

调整添加到歌单的UI

onecold 9 ヶ月 前
コミット
53795d4235
1 ファイル変更2 行追加8 行削除
  1. 2 8
      entry/src/main/ets/dialog/AddToPlaylistDialog.ets

+ 2 - 8
entry/src/main/ets/dialog/AddToPlaylistDialog.ets

@@ -47,18 +47,12 @@ struct AddToPlaylistDialogContent {
 
   build() {
     Column({ space: 16 }) {
-      // 标题
-      Text('添加到歌单')
-        .fontSize(18)
-        .fontWeight(FontWeight.Bold)
-        .fontColor($r('app.color.text_color'))
-        .margin({ top: 20 })
 
       // 歌曲信息
       if (this.currentSong) {
         Row({ space: 12 }) {
           // 封面
-          Image(this.currentSong.pixelMap || $r('app.media.icon'))
+          Image(this.currentSong.pixelMapPath || $r('app.media.icon'))
             .width(48)
             .height(48)
             .borderRadius(8)
@@ -223,7 +217,7 @@ struct AddToPlaylistDialogContent {
       .justifyContent(FlexAlign.SpaceBetween)
       .margin({ top: 20, bottom: 20 })
     }
-    .width('90%')
+    .width('100%')
     .constraintSize({ maxWidth: 400 })
     .backgroundColor(this.isDarkMode ? '#2C2C2E' : $r('app.color.dialog_background'))
     .borderRadius(12)