Browse Source

文章图片限制最大宽度70%

natasha 1 week ago
parent
commit
1d810d6f52

+ 1 - 1
src/views/bookShelf/articleDetail.vue

@@ -2401,7 +2401,7 @@ export default {
     font-size: 0;
     text-align: center;
     img {
-      max-width: 100%;
+      max-width: 70%;
     }
   }
 }

+ 1 - 1
src/views/bookShelf/components/NormalModel.vue

@@ -817,7 +817,7 @@ export default {
   color: #2f3742;
   overflow-x: hidden;
   img {
-    max-width: 100%;
+    max-width: 70%;
   }
   :deep figure {
     margin: 16px 0;

+ 3 - 0
src/views/bookShelf/components/PrintModel.vue

@@ -2268,6 +2268,9 @@ export default {
 :deep figure {
   margin: 1em 0;
   text-align: center;
+  img {
+    max-width: 70%;
+  }
 }
 </style>
 <style lang="scss">