Selaa lähdekoodia

fix: 修改文章描述样式

IlhamTahir 1 vuosi sitten
vanhempi
commit
e286106b11
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/pages/pet-manual/components/CardList.vue

+ 1 - 1
src/pages/pet-manual/components/CardList.vue

@@ -46,7 +46,7 @@ function handleLoadMore() {
         <view class="text-[14px]">
           {{ item.title }}
         </view>
-        <view class="mt-2 flex-1 text-[11px] text-[#999] whitespace-pre-line">
+        <view class="mt-2 flex-1 text-[11px] leading-3 text-[#999] whitespace-pre-line line-clamp-3 w-full overflow-hidden">
           {{ item.description }}
         </view>
         <view class="mt-3 text-[10px] text-[#D8D8D8]">