王士厅

fix: 视频详情页面,对简介上滑时,没有对号主名称进行固定

@@ -13,17 +13,19 @@ export struct DetailDialog { @@ -13,17 +13,19 @@ export struct DetailDialog {
13 build() { 13 build() {
14 14
15 Column() { 15 Column() {
  16 + Column() {
  17 + if (this.name) {
  18 + Text(`@${this.name}`)
  19 + .fontColor(Color.White)
  20 + .fontSize(14)
  21 + .fontWeight(600)
  22 + .lineHeight(17)
  23 + .margin({ top: 8 })
  24 + }
  25 + }
  26 + .alignItems(HorizontalAlign.Start)
16 Scroll() { 27 Scroll() {
17 Column() { 28 Column() {
18 - if (this.name) {  
19 - Text(`@${this.name}`)  
20 - .fontColor(Color.White)  
21 - .fontSize(14)  
22 - .fontWeight(600)  
23 - .lineHeight(17)  
24 - .margin({ top: 8 })  
25 - }  
26 -  
27 if (this.title) { 29 if (this.title) {
28 Text(this.title) 30 Text(this.title)
29 .fontColor(Color.White) 31 .fontColor(Color.White)
@@ -55,7 +57,9 @@ export struct DetailDialog { @@ -55,7 +57,9 @@ export struct DetailDialog {
55 57
56 } 58 }
57 .scrollBar(BarState.Off) //安卓不显示滚动条 59 .scrollBar(BarState.Off) //安卓不显示滚动条
58 - .height(200) 60 + .constraintSize({
  61 + maxHeight: 200
  62 + })
59 63
60 Row() { 64 Row() {
61 Image($r("app.media.icon_arrow_left_white")) 65 Image($r("app.media.icon_arrow_left_white"))