Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
hager
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-10-25 15:43:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5e8bfdcaa0214b39b5d61cdf2242623170a1f0e0
5e8bfdca
1 parent
a5ddcdfc
新闻详情页图片大小只有自适应模式控制
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
src/views/news/detail.vue
src/views/news/detail.vue
View file @
5e8bfdc
<!--
* @Date: 2024-10-18 12:06:09
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-10-2
3 13:13:10
* @LastEditTime: 2024-10-2
5 11:53:21
* @FilePath: /hager/src/views/news/detail.vue
* @Description: 文件描述
-->
...
...
@@ -21,7 +21,7 @@
</hager-box>
<hager-box>
<div class="news-title">{{ title }}</div>
<div
class="news-content
" v-html="content"></div>
<div
:class="['news-content', is_xs ? 'xs' : '']
" v-html="content"></div>
</hager-box>
</div>
</template>
...
...
@@ -81,9 +81,11 @@ export default {
:deep(.news-content) {
margin-bottom: 2rem;
img {
width: 100%;
height: auto;
&.xs {
img {
width: 100%;
height: auto;
}
}
}
}
...
...
Please
register
or
login
to post a comment