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-12-09 14:10:10 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6a63e58ca8f41b26b4d609e9a2f95cf96b77670b
6a63e58c
1 parent
c4107ec5
fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
src/views/solution/index.vue
src/views/solution/index.vue
View file @
6a63e58
...
...
@@ -44,8 +44,8 @@
<swiper-slide v-for="(item, index) in solution_list" :key="index">
<div @click="goToSolution(item)" class="card" style="margin-bottom: 1rem;">
<img :src="item.cover" alt="学校图片" class="card-image">
<div class="card-content">
<div class="card-title">
<div class="card-content
xs
">
<div class="card-title
-xs
">
<span>{{ item.category_name }}</span>
<!-- <i class="el-icon-right"></i> -->
</div>
...
...
@@ -244,14 +244,26 @@ export default {
.card-content {
padding: 15px;
padding-bottom: 0;
&.xs {
padding-bottom: 0;
}
.card-title {
// display: flex;
// align-items: center;
// justify-content: space-between;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 1rem;
color: @secondary-color;
margin-bottom: 10px;
font-weight: bold;
span {
white-space: nowrap; /* 不换行 */
overflow: hidden; /* 隐藏超出部分 */
text-overflow: ellipsis; /* 用省略号表示被截断的部分 */
}
}
.card-title-xs {
font-size: 1rem;
color: @secondary-color;
// margin-bottom: 10px;
font-weight: bold;
span {
min-height: calc(2 * 1.5em); /* 假设行高为 1.5em */
...
...
Please
register
or
login
to post a comment