From 22453793f56f5eda177997e07bedd899edc63507 Mon Sep 17 00:00:00 2001 From: yuandongping Date: Tue, 18 Feb 2025 14:46:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E5=AD=97=E6=BA=A2?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yuandongping --- .../entry/src/main/ets/common/PanelView.ets | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/SystemFeature/DeviceUsageStatistics/DeviceUsageStatistics/entry/src/main/ets/common/PanelView.ets b/code/SystemFeature/DeviceUsageStatistics/DeviceUsageStatistics/entry/src/main/ets/common/PanelView.ets index b9bd43964b..22af5034c4 100644 --- a/code/SystemFeature/DeviceUsageStatistics/DeviceUsageStatistics/entry/src/main/ets/common/PanelView.ets +++ b/code/SystemFeature/DeviceUsageStatistics/DeviceUsageStatistics/entry/src/main/ets/common/PanelView.ets @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -63,8 +63,13 @@ export struct PanelView { Text(item) .fontSize(20) .margin({ top: 5 }) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .maxLines(1) }, item => item) } + .constraintSize({ + maxWidth: 150 + }) .margin({ top: 10, left: 35 }) } .height(250) -- Gitee