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
xugenyuan
2024-08-28 15:38:32 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c55a93cbce5896c1074f5cad1540a18ee75e367d
c55a93cb
1 parent
b07ffec6
ref |> 处理评论列表间距和展开展示一半问题
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentText.ets
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentComponent.ets
View file @
c55a93c
...
...
@@ -714,7 +714,7 @@ struct commentHeaderView {
dialogBeforeJumpOtherPageAction: this.dialogBeforeJumpOtherPageAction
}).margin({ left: 60, right: 16 })
}.alignItems(HorizontalAlign.Start)
.padding({bottom:
8
})
.padding({bottom:
0
})
}
@Builder headerView() {
...
...
@@ -842,6 +842,7 @@ struct commentFooterView {
})
}
}
// .alignItems(VerticalAlign.Bottom)
.justifyContent(FlexAlign.SpaceBetween)
.width('100%')
.height(30)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/CommentText.ets
View file @
c55a93c
...
...
@@ -110,9 +110,12 @@ export struct CommentText {
// this.maxLineMesssage = this.maxLineMesssage.slice(0, this.maxLineMesssage.length - 1)
// }
// console.log(`XXXXXXXXXXGY:${thisTextWidth - maxLineTextWidth}`)
///早晚报三行显示 展开功能显示末尾
if (this.isMorningEveningPaper) {
this.maxLineMesssage = this.maxLineMesssage.substring(0,this.maxLineMesssage.length - 7)
} else if (thisTextWidth > maxLineTextWidth + 5) {
this.maxLineMesssage = this.maxLineMesssage.substring(0,this.maxLineMesssage.length - 1)
}
break
}
...
...
Please
register
or
login
to post a comment