Procházet zdrojové kódy

优化搜索页按钮样式

萤火科技 před 4 roky
rodič
revize
22ab7d8f78
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      pages/search/index.vue

+ 3 - 3
pages/search/index.vue

@@ -12,7 +12,7 @@
         </view>
       </view>
       <view class="search-button">
-        <button class="button" @click="onSearch" type="warn"> 搜索 </button>
+        <button class="button" @click="onSearch" type="warn">搜索</button>
       </view>
     </view>
     <view class="history" v-if="historySearch.length">
@@ -153,7 +153,8 @@
         input {
           font-size: 28rpx;
           height: 64rpx;
-          line-height: 64rpx;
+          display: flex;
+          align-items: center;
 
           .input-placeholder {
             color: #aba9a9;
@@ -170,7 +171,6 @@
     box-sizing: border-box;
 
     .button {
-      line-height: 64rpx;
       height: 64rpx;
       font-size: 28rpx;
       border-radius: 0 5px 5px 0;