style: use natural widths for home channels

This commit is contained in:
hajimi
2026-08-02 01:03:13 +08:00
parent 7b49922a04
commit 75a89b7556
+4 -8
View File
@@ -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 {