소스 검색

کاهش سایز آخرین اخبار

hgh 1 년 전
부모
커밋
0a85af8c1a
1개의 변경된 파일과 6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      src/components/Widgets/Post/LastPosts/components/PostItem.vue

+ 6 - 3
src/components/Widgets/Post/LastPosts/components/PostItem.vue

@@ -67,14 +67,17 @@ export default defineComponent({
   border-radius: 8px;
   padding: 0;
   margin: 0;
+  $thumbnail-width: 400px;
   .thumbnail {
-    width: 45%;
+    //width: 45%;
+    width: $thumbnail-width;
     .q-img {
-      border-radius: 20px 8px 8px 20px;
+      border-radius: 0 8px 8px 0;
     }
   }
   .content {
-    width: 55%;
+    //width: 55%;
+    width: calc( 100% - #{$thumbnail-width} );
     padding: 52px 80px 52px 40px;
     display: flex;
     flex-flow: column;