Skip to content

Commit b59f068

Browse files
author
pixel
committed
媒体库样式优化
1 parent ad6311d commit b59f068

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

web/src/components/chooseImg/index.vue

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<el-drawer title="媒体库" :visible.sync="drawer">
3-
<div style="display:flex;justify-content:space-around;flex-wrap:wrap;padding-top:40px">
3+
<div class="media">
44
<el-image
55
class="header-img-box-list"
66
:src="(item.url && item.url.slice(0, 4) !== 'http')?path+item.url:item.url"
@@ -49,13 +49,20 @@ export default {
4949
</script>
5050

5151
<style lang="scss">
52-
.header-img-box-list {
53-
width: 180px;
54-
height: 180px;
55-
border: 1px dashed #ccc;
56-
border-radius: 20px;
57-
text-align: center;
58-
line-height: 180px;
59-
cursor: pointer;
52+
.media{
53+
display:flex;
54+
flex-wrap:wrap;
55+
.header-img-box-list {
56+
margin-top: 20px;
57+
width: 120px;
58+
margin-left: 20px;
59+
height: 120px;
60+
border: 1px dashed #ccc;
61+
border-radius: 20px;
62+
text-align: center;
63+
line-height: 180px;
64+
cursor: pointer;
6065
}
66+
}
67+
6168
</style>

0 commit comments

Comments
 (0)