style: use natural widths for home channels
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user