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
陈剑华
2024-06-26 10:57:32 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a1152833ffa0b9d768de8facfb13f91db0bae37a
a1152833
1 parent
eb317ce7
fix: 19150 角标--配置超长来源时,稿件角标不应折行展示
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
17 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/CardSourceInfo.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/CardSourceInfo.ets
View file @
a115283
...
...
@@ -91,29 +91,19 @@ export struct CardSourceInfo {
}
build() {
Flex({
alignItems: ItemAlign.Center
}) {
Flex({
justifyContent: FlexAlign.Start, direction: FlexDirection.Row
}) {
// 标签
if (this.contentDTO.corner) {
Text(this.contentDTO.corner)
.fontSize($r("app.float.font_size_11"))
.fontColor($r("app.color.color_ED2800"))
.margin({ right: 6 })
}
if (this.contentDTO.cornerMark) {
Text(this.contentDTO.cornerMark)
if (this.contentDTO.cornerMark || this.contentDTO.corner) {
Text(this.contentDTO.cornerMark || this.contentDTO.corner)
.fontSize($r("app.float.font_size_11"))
.fontColor($r("app.color.color_ED2800"))
.margin({ right: 6 })
.flexShrink(0)
}
// 来源信息
if (this.contentDTO.rmhPlatform === 1) {
Text(this.contentDTO.rmhInfo?.rmhName)
.fontSize($r("app.float.font_size_11"))
.fontColor($r("app.color.color_B0B0B0"))
.maxLines(1)
.textOverflow({ overflow: TextOverflow.Ellipsis })
} else if (this.contentDTO.source) {
Text(`${this.contentDTO.source}`)
if (this.contentDTO.rmhPlatform === 1 || this.contentDTO.source) {
Text(this.contentDTO.rmhPlatform === 1 ? this.contentDTO.rmhInfo?.rmhName : this.contentDTO.source)
.fontSize($r("app.float.font_size_11"))
.fontColor($r("app.color.color_B0B0B0"))
.maxLines(1)
...
...
@@ -169,6 +159,7 @@ export struct CardSourceInfo {
}
.width(CommonConstants.FULL_WIDTH)
.height(16)
.margin({ top: this.viewShowData ? 8 : 0 })
}
...
...
Please
register
or
login
to post a comment