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-09-06 16:47:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
33b065968dac1ed3b9f4653fc4191f286e4a3c4f
33b06596
1 parent
34ddbb0b
fix: 直播预告卡折叠屏展开适配
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow03.ets
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow03.ets
View file @
33b0659
...
...
@@ -220,6 +220,9 @@ export struct ZhSingleRow03 {
.margin({left: 1.5 * (this.moreWidth - this.initMoreWidth)})
}
}
.constraintSize({
minWidth: '100%'
})
}
.align(Alignment.Start)
.scrollable(this.compDTO.operDataList.length >= 2 ? ScrollDirection.Horizontal : ScrollDirection.None)
...
...
@@ -259,7 +262,7 @@ export struct ZhSingleRow03 {
ItemCard(item: ContentDTO) {
if (this.compDTO.operDataList.length >= 2) {
Column() {
Row(
) {
Flex({alignContent: FlexAlign.Start}
) {
Image(this.loadImg ? item.coverUrl : '')
.backgroundColor(0xf5f5f5)
.borderRadius(4)
...
...
@@ -269,15 +272,18 @@ export struct ZhSingleRow03 {
width: 0.7,
color: '#EDEDED',
})
.flexShrink(0)
Text(item.newsTitle)
.width(154)
.height(60)
.constraintSize({
maxHeight: 60
})
.maxLines(3)
.fontSize(15)
.textOverflow({overflow: TextOverflow.Ellipsis})
.margin({left: 12})
.flexShrink(1)
}
.margin({bottom: 16})
...
...
@@ -348,7 +354,11 @@ export struct ZhSingleRow03 {
}
}
.width(298)
// .width(298)
.constraintSize({
minWidth: 298,
maxWidth: '60%'
})
.height(116)
.padding({top: 12, bottom: 12, left: 12, right: 12})
.backgroundColor(0xf9f9f9)
...
...
Please
register
or
login
to post a comment