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-08-09 14:07:53 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f6ad2cc5181e1cc63094f207a4eddf498a929d75
f6ad2cc5
1 parent
0f80f2fa
fix: 【华为验收】折叠屏,意见反馈,提交按钮与底部导航条重叠,解决方案增加提交按钮的底部边距
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
15 deletions
sight_harmony/features/wdComponent/src/main/ets/components/FeedBackActivity.ets
sight_harmony/features/wdComponent/src/main/ets/components/reusable/CustomTitleUI.ets
sight_harmony/features/wdComponent/src/main/ets/components/FeedBackActivity.ets
View file @
f6ad2cc
...
...
@@ -42,7 +42,7 @@ export struct FeedBackActivity {
@State toastText:ResourceStr = ""
// @Provid
e bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0
@Stat
e bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0
@Provide topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0
dialogToast: CustomDialogController = new CustomDialogController({
...
...
@@ -291,7 +291,7 @@ export struct FeedBackActivity {
.height(CommonConstants.FULL_HEIGHT)
.scrollBar(BarState.Off)
.alignSelf(ItemAlign.Start)
.padding({ bottom: 64+64 })
.padding({ bottom: 64+64
+15
})
Column(){
Text($r('app.string.submit'))
.textAlign(TextAlign.Center)
...
...
@@ -307,7 +307,7 @@ export struct FeedBackActivity {
}
this.reportCommit()
})
.margin({
bottom:64+64
})
.margin({
bottom: 64+64+15
})
}
}
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/reusable/CustomTitleUI.ets
View file @
f6ad2cc
...
...
@@ -11,10 +11,8 @@ export struct CustomTitleUI {
//标题栏目
if(this.imgBack){
Image($r('app.media.back_icon'))
// .width(`${this.calcHeight(46)}lpx`)
.width(24)
.height(24)
// .height(`${this.calcHeight(46)}lpx`)
.width(`${this.calcHeight(46)}lpx`)
.height(`${this.calcHeight(46)}lpx`)
.objectFit(ImageFit.Auto)
.interpolation(ImageInterpolation.High)
.id("back_icon")
...
...
@@ -22,8 +20,7 @@ export struct CustomTitleUI {
center: {anchor: "__container__", align: VerticalAlign.Center},
left: {anchor: "__container__", align: HorizontalAlign.Start}
})
.margin({left:16})
// .margin({left:`${this.calcHeight(31)}lpx`})
.margin({left:`${this.calcHeight(31)}lpx`})
.onClick(()=>{
router.back()
})
...
...
@@ -32,20 +29,17 @@ export struct CustomTitleUI {
Text(this.titleName)
.maxLines(1)
.id("title")
.fontSize(18)
// .fontSize(`${this.calcHeight(35)}lpx`)
.fontSize(`${this.calcHeight(35)}lpx`)
.fontWeight(400)
.fontColor($r('app.color.color_222222'))
.lineHeight(26)
// .lineHeight(`${this.calcHeight(50)}lpx`)
.lineHeight(`${this.calcHeight(50)}lpx`)
.alignRules({
center: {anchor: "__container__", align: VerticalAlign.Center},
middle: {anchor: "__container__", align: HorizontalAlign.Center}
})
}
// .height(`${this.calcHeight(84)}lpx`)
.height(44)
.height(`${this.calcHeight(84)}lpx`)
.width('100%')
.backgroundColor($r('app.color.white'))
}
...
...
Please
register
or
login
to post a comment