Commit cf352a82 authored by Damon's avatar Damon

fix: 【ID1001355】【小程序-首页-试题搜索】:搜索记录未只显示2行

parent 499127c7
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
> >
</view> </view>
<view class="u-flex clear" @click="removeHistory"> <view class="u-flex clear" @click="removeHistory" v-if="history.length > 0">
<image :src="deleteImg"></image> <image :src="deleteImg"></image>
<view>清空搜索历史记录</view> <view>清空搜索历史记录</view>
</view> </view>
...@@ -113,6 +113,9 @@ export default { ...@@ -113,6 +113,9 @@ export default {
.history { .history {
margin-top: 20rpx; margin-top: 20rpx;
flex-wrap: wrap; flex-wrap: wrap;
max-height: 190rpx;
overflow: hidden;
align-items: flex-start;
.history-list { .history-list {
padding: 20rpx 25rpx; padding: 20rpx 25rpx;
background: #fff; background: #fff;
......
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