Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
chenquansheng
2024-09-03 16:20:10 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ee6568967c58e4719f572922ea14215e4705571a
ee656896
1 parent
b4411a04
fix |> 修复文章详情页吴评论数时滑到评论区不显示正文标识
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentTabComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentTabComponent.ets
View file @
ee65689
...
...
@@ -185,7 +185,25 @@ export struct CommentIconComponent {
Image(this.styleType == 1 ? $r('app.media.comment_icon') :
$r('app.media.comment_icon_white')).width(24).height(24)
// Stack({alignContent:Alignment.Start}) {
if (this.showMainText) {
this.commentIcon()
}else {
if (Number.parseInt(this.publishCommentModel.totalCommentNumer) != 0) {
this.commentIcon()
}
}
}
}
.width(24)
.height(24)
.visibility(this.contentDetail.appstyle !== 9 ? Visibility.Visible : Visibility.Hidden)
// .backgroundColor(Color.Blue)
}
@Builder
commentIcon() {
RelativeContainer() {
Image(this.styleType == 1 ? this.showMainText?$r('app.media.comment_icon_text_bg'):$r('app.media.comment_icon_number_bg') : this.showMainText?$r('app.media.comment_icon_text_block_bg'):$r('app.media.ic_like_back_Select'))
.objectFit(ImageFit.Fill)
...
...
@@ -231,15 +249,6 @@ export struct CommentIconComponent {
x: this.showMainText?8:12,
y: -2
})
}
}
}
.width(24)
.height(24)
.visibility(this.contentDetail.appstyle !== 9 ? Visibility.Visible : Visibility.Hidden)
// .backgroundColor(Color.Blue)
}
private getMeasureText(text: string) {
...
...
Please
register
or
login
to post a comment