From 75a89b7556a5ab24f97cb0a41e7dc00fd5810db8 Mon Sep 17 00:00:00 2001 From: hajimi Date: Sun, 2 Aug 2026 01:03:13 +0800 Subject: [PATCH] style: use natural widths for home channels --- uniapp/src/pages/index/index.vue | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/uniapp/src/pages/index/index.vue b/uniapp/src/pages/index/index.vue index 00f112c..c423f75 100644 --- a/uniapp/src/pages/index/index.vue +++ b/uniapp/src/pages/index/index.vue @@ -549,15 +549,15 @@ onUnload(() => uni.$off('channelChanged', onChannelChanged)) align-items: stretch; min-width: 100%; height: 100%; - padding: 0 12rpx; - gap: 12rpx; + padding: 0 40rpx; + gap: 48rpx; box-sizing: border-box; white-space: nowrap; } &__item { - flex: 0 0 116rpx; - width: 116rpx; + flex: 0 0 auto; + width: auto; position: relative; display: flex; justify-content: center; @@ -565,13 +565,9 @@ onUnload(() => uni.$off('channelChanged', onChannelChanged)) color: #252b36; font-size: 29rpx; white-space: nowrap; - overflow: hidden; text { display: block; - max-width: 100%; - overflow: hidden; - text-overflow: ellipsis; } &--active {