diff --git a/features/home/src/main/ets/view/HomeHeader.ets b/features/home/src/main/ets/view/HomeHeader.ets index c14737b9b17c698082d4897f2d71bdb18c69d3a8..0f5db20f73c161af7f1adc56ba3c75762dfdbc20 100644 --- a/features/home/src/main/ets/view/HomeHeader.ets +++ b/features/home/src/main/ets/view/HomeHeader.ets @@ -71,7 +71,7 @@ export struct HomeHeader { Text(item) .fontSize(this.currentTopIndex === index ? $r('app.float.search_tab_font_selected') : $r('app.float.search_tab_font')) .fontWeight(this.currentTopIndex === index ? 700 : 500) - .width(this.currentTopIndex === index ? $r('app.float.top_text_width_selected') : $r('app.float.top_text_width')) + .width(this.currentTopIndex === index ? '70vp' : '66vp') .textAlign(TextAlign.Center) .fontColor(this.currentTopIndex === 2 ? Color.White : $r('app.color.normal_font_color')) .lineHeight(index === this.currentTopIndex ? $r('app.float.top_tab_list_height_selected') : $r('app.float.top_tab_list_height'))