ref |> 调整文章详情页没有推荐 没有评论情况下 底部高度问题
人民号>最高法,文章:我们从未忘记,稿件拖到最后,分享按钮无法露出。 http://192.168.1.3:8080/zentao/bug-view-20636.html Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
Showing
1 changed file
with
6 additions
and
0 deletions
| @@ -185,6 +185,12 @@ export struct ImageAndTextPageComponent { | @@ -185,6 +185,12 @@ export struct ImageAndTextPageComponent { | ||
| 185 | .padding({ top: 14, bottom: 24 }) | 185 | .padding({ top: 14, bottom: 24 }) |
| 186 | .justifyContent(FlexAlign.Center) | 186 | .justifyContent(FlexAlign.Center) |
| 187 | } | 187 | } |
| 188 | + | ||
| 189 | + // 没有推荐 && 没有评论,高度需要增加,否则被外层padding了 显示不下 | ||
| 190 | + if (this.recommendList.length == 0 && !this.contentDetailData?.openComment) { | ||
| 191 | + Column() { | ||
| 192 | + }.height(44 + 24) | ||
| 193 | + } | ||
| 188 | if (this.recommendList.length > 0) { | 194 | if (this.recommendList.length > 0) { |
| 189 | Column(){ | 195 | Column(){ |
| 190 | Divider().strokeWidth(8).color('#f5f5f5') | 196 | Divider().strokeWidth(8).color('#f5f5f5') |
-
Please register or login to post a comment