Commit eb56d0f7 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化皮肤预览图

parent 1837a095
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
:key="v.id" :key="v.id"
> >
<img :src="v.previewImagePath" /> <img :src="v.previewImagePath" />
<div class="name">
{{ v.name }}
</div>
</div> </div>
</div> </div>
<a-empty v-else :image="simpleImage" /> <a-empty v-else :image="simpleImage" />
...@@ -180,12 +183,25 @@ export default { ...@@ -180,12 +183,25 @@ export default {
margin-bottom: 6px; margin-bottom: 6px;
height: 120px; height: 120px;
background-color: #ececec; background-color: #ececec;
position: relative;
cursor: pointer; cursor: pointer;
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: contain; object-fit: contain;
} }
.name {
width: 100%;
background-color: rgba(0, 0, 0, 0.3);
color: #fff;
position: absolute;
left: 0px;
bottom: 0px;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
} }
.active { .active {
border: 4px solid #ff8522; border: 4px solid #ff8522;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment