Showing
1 changed file
with
4 additions
and
2 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-10-18 12:06:09 | 2 | * @Date: 2024-10-18 12:06:09 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-10-23 13:13:10 | 4 | + * @LastEditTime: 2024-10-25 11:53:21 |
| 5 | * @FilePath: /hager/src/views/news/detail.vue | 5 | * @FilePath: /hager/src/views/news/detail.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -21,7 +21,7 @@ | ... | @@ -21,7 +21,7 @@ |
| 21 | </hager-box> | 21 | </hager-box> |
| 22 | <hager-box> | 22 | <hager-box> |
| 23 | <div class="news-title">{{ title }}</div> | 23 | <div class="news-title">{{ title }}</div> |
| 24 | - <div class="news-content" v-html="content"></div> | 24 | + <div :class="['news-content', is_xs ? 'xs' : '']" v-html="content"></div> |
| 25 | </hager-box> | 25 | </hager-box> |
| 26 | </div> | 26 | </div> |
| 27 | </template> | 27 | </template> |
| ... | @@ -81,10 +81,12 @@ export default { | ... | @@ -81,10 +81,12 @@ export default { |
| 81 | 81 | ||
| 82 | :deep(.news-content) { | 82 | :deep(.news-content) { |
| 83 | margin-bottom: 2rem; | 83 | margin-bottom: 2rem; |
| 84 | + &.xs { | ||
| 84 | img { | 85 | img { |
| 85 | width: 100%; | 86 | width: 100%; |
| 86 | height: auto; | 87 | height: auto; |
| 87 | } | 88 | } |
| 88 | } | 89 | } |
| 89 | } | 90 | } |
| 91 | + } | ||
| 90 | </style> | 92 | </style> | ... | ... |
-
Please register or login to post a comment