note layout on note list

Signed-off-by: guozejun <guozejun@huawei.com>
This commit is contained in:
guozejun
2022-05-10 14:32:24 +08:00
parent 5f1e43394c
commit bc9989bd47
2 changed files with 5 additions and 5 deletions
@@ -372,7 +372,7 @@ export struct NoteItemListComp {
.backgroundColor($r("app.color.notelist_bgcolor_f1f3f5"))
.visibility((FolderUtil.getNoteCount(AppStorage.Get('AllNoteArray'), this.selectedFolderData.uuid) == 0) ? Visibility.None : Visibility.Visible)
Stack() {
Column() {
Flex({ justifyContent: FlexAlign.Center }) {
Text($r("app.string.permanently_delete_tips"))
.fontSize(12)
@@ -416,7 +416,7 @@ export struct NoteItemListComp {
.backgroundColor($r("app.color.notelist_bgcolor_f1f3f5"))
}, noteItem => noteItem.uuid.toString())
}
.height("100%")
.layoutWeight(1)
.backgroundColor($r("app.color.notelist_bgcolor_f1f3f5"))
.listDirection(Axis.Vertical)
.edgeEffect(EdgeEffect.Spring)
@@ -434,10 +434,10 @@ export struct NoteItemListComp {
.visibility(this.search ? Visibility.Visible : Visibility.Hidden)
}
.backgroundColor($r("app.color.notelist_bgcolor_f1f3f5"))
.flexGrow(1)
.flexShrink(1)
}
.backgroundColor($r("app.color.notelist_bgcolor_f1f3f5"))
.flexGrow(1)
.flexShrink(1)
.onClick(() => {
this.search = false
})
@@ -87,7 +87,7 @@ export struct NoteHomeComp {
.opacity(StyleConstants.OPACITY_10)
NoteListComp({ controllerShow: this.controllerShow })
}
.flexShrink(0)
.flexShrink(1)
.backgroundColor($r("app.color.notelist_bgcolor_f1f3f5"))
.layoutWeight(2)
.height(StyleConstants.PERCENTAGE_100)