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-03 17:26:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b5842d8b8606136d57e1d0ca2d6e8c3a4d73c5dd
b5842d8b
1 parent
cbda2ce8
fix(17493):人民号冷启动卡-行间距过大、功能按钮位置偏下
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
sight_harmony/features/wdComponent/src/main/ets/components/peopleShip/PeopleShipRecommendComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/peopleShip/PeopleShipRecommendHeadComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/peopleShip/PeopleShipRecommendComponent.ets
View file @
b5842d8
...
...
@@ -26,7 +26,7 @@ export struct PeopleShipRecommendComponent {
.height('30vp')
.fontColor($r('app.color.color_222222'))
.fontWeight(600)
.fontSize($r('app.float.vp_1
8
'))
.fontSize($r('app.float.vp_1
5_7
'))
Blank()
Button({ type: ButtonType.Normal, stateEffect: false }) {
...
...
@@ -35,7 +35,7 @@ export struct PeopleShipRecommendComponent {
.height('30vp')
.fontColor($r('app.color.color_999999'))
.fontWeight(400)
.fontSize($r('app.float.vp_1
4
'))
.fontSize($r('app.float.vp_1
3
'))
Image($r('app.media.ic_refresh'))
.width('14vp')
.height('14vp')
...
...
@@ -56,7 +56,7 @@ export struct PeopleShipRecommendComponent {
.width('100%')
.alignSelf(ItemAlign.Start)
.margin({
top: '
1
0vp',
top: '
-5
0vp',
bottom: '10vp'
})
...
...
@@ -75,7 +75,7 @@ export struct PeopleShipRecommendComponent {
.columnsTemplate('1fr 1fr 1fr')
.columnsGap(20)
.rowsGap(16)
.height(Math.ceil(this.rmhList.length / 3.0) * 1
32
)
.height(Math.ceil(this.rmhList.length / 3.0) * 1
26
)
.backgroundColor(Color.Transparent)
.margin({
right: '20vp',
...
...
@@ -94,7 +94,7 @@ export struct PeopleShipRecommendComponent {
.borderRadius('3vp')
.fontColor($r('app.color.color_999999'))
.fontWeight(500)
.fontSize($r('app.float.vp_1
4
'))
.fontSize($r('app.float.vp_1
3
'))
.fontColor(Color.White)
.onClick(() => {
// 点击一键关注
...
...
sight_harmony/features/wdComponent/src/main/ets/components/peopleShip/PeopleShipRecommendHeadComponent.ets
View file @
b5842d8
...
...
@@ -11,8 +11,8 @@ export struct PeopleShipRecommendHeadComponent {
Column(){
Stack({ alignContent: Alignment.BottomEnd }) {
Image(this.rmhInfo.headPhotoUrl.length > 0 ? this.rmhInfo.headPhotoUrl : $r('app.media.WDAccountOwnerHedaerDefaultIcon'))
.width('44vp')
.height('44vp')
.width('40vp')
.height('40vp')
.borderRadius('22vp')
.objectFit(ImageFit.Cover)
...
...
@@ -23,12 +23,12 @@ export struct PeopleShipRecommendHeadComponent {
.margin({
right: '-3vp'
})
}.margin({ top:
12
, bottom: 8 })
}.margin({ top:
4
, bottom: 8 })
Row() {
Text(this.rmhInfo.userName)
.fontColor($r('app.color.color_222222'))
.fontSize($r('app.float.vp_1
4
'))
.fontSize($r('app.float.vp_1
3
'))
.fontWeight(600)
.maxLines(1)
.textOverflow({overflow: TextOverflow.Ellipsis})
...
...
@@ -49,14 +49,14 @@ export struct PeopleShipRecommendHeadComponent {
Text(this.rmhInfo.introduction)
.fontColor($r('app.color.color_B0B0B0'))
.fontSize($r('app.float.vp_12'))
.margin({ top: 8, bottom: 14 })
.fontSize($r('app.float.vp_11'))
.margin({ top: 6, bottom: 14 })
.textOverflow({overflow: TextOverflow.Ellipsis})
.maxLines(2)
.height(34)
}
.width('100%')
.height('11
6
vp')
.height('11
0
vp')
}
...
...
Please
register
or
login
to post a comment