Commit d4fbd795 by 李嘉林

搜索框热门词超出宽度

parent ce4feff4
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
</view> </view>
</view> </view>
<!-- 热门词区域 --> <!-- 热门词区域 -->
<view class="hot_words_class" wx:if="{{datas.componentData.hotWordsData['isOpenHotWords'] == 1}}"> <view class="hot_words_class" style="justify-content:{{datas.componentData.hotWordsData['hotWordsLayout'] == 2?'center':'start'}}" wx:if="{{datas.componentData.hotWordsData['isOpenHotWords'] == 1}}">
<view class="hot_words_box" style="justify-content:{{datas.componentData.hotWordsData['hotWordsLayout'] == 2?'center':'start'}}"> <view class="hot_words_box">
<view class="words_item" wx:for="{{tableData}}" wx:key="id" style="font-size:{{datas.componentData.hotWordsData.hotWordsTextIsDefault==1 ? datas.componentData.hotWordsData.fontSize + 'px' : ''}};color:{{datas.componentData.hotWordsData.hotWordsTextIsDefault==1 ? datas.componentData.hotWordsData.color : ''}};background-color:{{datas.componentData.hotWordsData.hotWordsBackgroundIsDefault==1 ? datas.componentData.hotWordsData.backgroundColor : ''}}"> <view class="words_item" wx:for="{{tableData}}" wx:key="id" style="font-size:{{datas.componentData.hotWordsData.hotWordsTextIsDefault==1 ? datas.componentData.hotWordsData.fontSize + 'px' : ''}};color:{{datas.componentData.hotWordsData.hotWordsTextIsDefault==1 ? datas.componentData.hotWordsData.color : ''}};background-color:{{datas.componentData.hotWordsData.hotWordsBackgroundIsDefault==1 ? datas.componentData.hotWordsData.backgroundColor : ''}}">
{{ item.popularWordsName }} {{ item.popularWordsName }}
</view> </view>
......
...@@ -84,15 +84,14 @@ input{ ...@@ -84,15 +84,14 @@ input{
} }
.hot_words_class { .hot_words_class {
width:100%;
padding: 0 8px; padding: 0 8px;
margin-bottom: 10px; margin-bottom: 10px;
display: flex;
} }
.hot_words_box { .hot_words_box {
display: flex; display: flex;
justify-content: start; justify-content: start;
width: 100%;
overflow: hidden; overflow: hidden;
overflow-x: scroll; overflow-x: scroll;
white-space: nowrap; white-space: nowrap;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment