diff --git a/features/home/src/main/ets/pages/ContactsList.ets b/features/home/src/main/ets/pages/ContactsList.ets index 2526db7a6d6696253e0373daed9ca2e63fed263c..44ea583b51066ac03972323848c1c15da32238a8 100755 --- a/features/home/src/main/ets/pages/ContactsList.ets +++ b/features/home/src/main/ets/pages/ContactsList.ets @@ -46,7 +46,7 @@ export struct ContactsList { build() { Flex({ direction: FlexDirection.Column }) { HomeTopSearch({ title: HomeConstants.CONTACTS_NAME }) - .height(Adaptive.ContactItemHeight(this.currentBreakpoint)) + .height('13%') Stack({ alignContent: Alignment.End }) { List({ scroller: this.listScroller }) { ListItem() { diff --git a/features/home/src/main/ets/pages/ConversationList.ets b/features/home/src/main/ets/pages/ConversationList.ets index 6d5270ab625c39a6d08b8d3cf27d4a3e75feebfd..cd766b0795eb96ef265bf0c31ae5300dfc8dec20 100755 --- a/features/home/src/main/ets/pages/ConversationList.ets +++ b/features/home/src/main/ets/pages/ConversationList.ets @@ -25,13 +25,13 @@ export struct ConversationList { @StorageProp('currentBreakpoint') currentBreakpoint: string = BreakpointConstants.BREAKPOINT_SM; @Link currentConversationUserName: Resource; @Link currentContactUserName: string; - @State private currentIndex: number = 0 + @State private currentIndex: number = 0; @Consume('pageInfo') pageInfo: NavPathStack; build() { Flex({ direction: FlexDirection.Column }) { HomeTopSearch({ title: HomeConstants.CONVERSATION_TITLE }) - .height(Adaptive.ContactItemHeight(this.currentBreakpoint)) + .height('13%') List() { ForEach(ConversationListData, (item: ConversationDataInterface, index: number) => { ListItem() { diff --git a/products/phone/src/main/ets/entryability/EntryAbility.ets b/products/phone/src/main/ets/entryability/EntryAbility.ets index 9f226fc7297e01aff46574c5e6255121b9ec0e0d..c65dc56bce0e0d6246a55d8312ddd9d4ed3f7612 100755 --- a/products/phone/src/main/ets/entryability/EntryAbility.ets +++ b/products/phone/src/main/ets/entryability/EntryAbility.ets @@ -63,9 +63,9 @@ export default class EntryAbility extends UIAbility { private updateBreakpoint(windowWidth: number): void { let windowWidthVp = windowWidth / display.getDefaultDisplaySync().densityPixels; let curBp: string = ''; - if (windowWidthVp < BreakpointConstants.BREAKPOINT_SCOPE[1]) { + if (windowWidthVp < BreakpointConstants.BREAKPOINT_SCOPE[2]) { curBp = BreakpointConstants.BREAKPOINT_SM; - } else if (windowWidthVp < BreakpointConstants.BREAKPOINT_SCOPE[2]) { + } else if (windowWidthVp < BreakpointConstants.BREAKPOINT_SCOPE[3]) { curBp = BreakpointConstants.BREAKPOINT_MD; } else { curBp = BreakpointConstants.BREAKPOINT_LG;