Skip to content

Commit e0b21cf

Browse files
committed
♻️ refactor: code
1 parent a2f5c28 commit e0b21cf

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/layouts/components/VabAd/index.vue

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="vab-ad">
33
<el-carousel v-if="adList" :autoplay="true" :interval="3000" direction="vertical" height="30px" indicator-position="none">
44
<el-carousel-item v-for="(item, index) in adList" :key="index">
5-
<el-tag type="warning">Ad</el-tag>
5+
<el-tag type="warning">付费版本 Ad</el-tag>
66
<a :href="item.url" target="_blank">{{ item.title }}</a>
77
</el-carousel-item>
88
</el-carousel>
@@ -32,15 +32,25 @@
3232
</script>
3333
<style lang="scss" scoped>
3434
.vab-ad {
35+
margin-top: 7px;
3536
height: 30px;
3637
padding-right: $base-padding;
3738
padding-left: $base-padding;
3839
margin-bottom: -20px;
39-
line-height: 30px;
40+
line-height: 32px;
4041
cursor: pointer;
4142
4243
a {
43-
color: #999;
44+
margin-left: 5px;
45+
color: #888;
46+
}
47+
48+
::v-deep {
49+
.el-carousel__container {
50+
display: flex;
51+
align-items: center;
52+
justify-content: space-between;
53+
}
4454
}
4555
}
4656
</style>

0 commit comments

Comments
 (0)