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
wangliang_wd
2024-09-23 10:07:45 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
34d9776d976cf002b117ddd0a389295e1b7b7211
34d9776d
1 parent
942a8cfd
feat:优化早晚报图片展示
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
sight_harmony/features/wdComponent/src/main/ets/components/page/CardView.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/CardView.ets
View file @
34d9776
...
...
@@ -443,8 +443,8 @@ export struct PaperSingleColumn999CardView {
Stack({ alignContent: Alignment.BottomEnd }) {
Image(this.item?.coverUrl)
.borderRadius(5)
.objectFit(ImageFit.Cover)
.aspectRatio(319 / 200) ///图片设计比例
.objectFit(ImageFit.Fill)
.aspectRatio(319 / 179) ///图片设计比例
.padding({ top: 10 })
//视频
if (this.item?.videoInfo) {
...
...
@@ -490,7 +490,7 @@ export struct PaperSingleColumn999CardView {
// autoplay: true,
// loop: true,
// })
Text(this.buildLiveStateString())
.fontColor(Color.White)
.fontSize($r('app.float.vp_12'))
...
...
Please
register
or
login
to post a comment