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
chenjun
2024-08-08 19:06:18 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b3df87efa9cb5255ba2547d2f5a5bb6beebb0ff4
b3df87ef
1 parent
b8dd1de4
标题最多可展现4行
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerTitleView.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerTitleView.ets
View file @
b3df87e
...
...
@@ -139,7 +139,7 @@ export struct PlayerTitleView {
Text(this.getTitle())
.fontColor(Color.White)
.fontSize(15)
.maxLines(
3
)
.maxLines(
4
)
.lineHeight(20)
.fontWeight(600)
.fontFamily('PingFang SC-Regular')
...
...
@@ -174,7 +174,7 @@ export struct PlayerTitleView {
// })
// }
// } else {
if(this.summary) {
if(this.summary
&& this.titleLines < 4
) {
Text() {
Span(this.clipText(this.summary, 14, this.summaryLines, this.windowWidth - 150 - vp2px(50)))
.fontSize(14)
...
...
Please
register
or
login
to post a comment