diff --git a/features/noticeitem/src/main/ets/com/ohos/noticeItem/common/constants.ts b/features/noticeitem/src/main/ets/com/ohos/noticeItem/common/constants.ts index 23ab1d2..f7dbfb3 100644 --- a/features/noticeitem/src/main/ets/com/ohos/noticeItem/common/constants.ts +++ b/features/noticeitem/src/main/ets/com/ohos/noticeItem/common/constants.ts @@ -48,7 +48,6 @@ export default class Constants { static SUCCESS_CALLBACK: number = 1; static KEY_INPUT: string = 'inputAction'; static FULL_CONTAINER_WIDTH = '100%'; - static NOT_FULL_WIDTH = '90%'; } export class NotificationLayout { diff --git a/features/noticeitem/src/main/ets/com/ohos/noticeItem/view/item/groupItem.ets b/features/noticeitem/src/main/ets/com/ohos/noticeItem/view/item/groupItem.ets index 8fcfc42..964c336 100644 --- a/features/noticeitem/src/main/ets/com/ohos/noticeItem/view/item/groupItem.ets +++ b/features/noticeitem/src/main/ets/com/ohos/noticeItem/view/item/groupItem.ets @@ -141,7 +141,7 @@ struct ContentList { .lineHeight(Layout.TEXT_LINE_HEIGHT) Blank() .margin({ left: Layout.ITEM_MARGIN, right: Layout.ITEM_MARGIN }) - }.width(Constants.NOT_FULL_WIDTH) + }.width(Constants.FULL_CONTAINER_WIDTH) .margin({ left: Layout.ITEM_MARGIN, right: Layout.ITEM_MARGIN }) Row({ space: 5 }) { @@ -168,7 +168,7 @@ struct ContentList { .visibility((this.remainderNum > 0) ? Visibility.Visible : Visibility.Hidden) .margin({ left: Layout.ITEM_MARGIN, right: Layout.ITEM_MARGIN }) } - .width(Constants.NOT_FULL_WIDTH) + .width(Constants.FULL_CONTAINER_WIDTH) .margin({ left: Layout.ITEM_MARGIN, right: Layout.ITEM_MARGIN }) Blank()