Skip to content

Commit

Permalink
fix: 开启广告屏蔽插件后不兼容
Browse files Browse the repository at this point in the history
  • Loading branch information
camera-2018 committed Jan 30, 2023
1 parent 6b5099a commit c3c5136
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions frontend/components/Aside/Advertisements.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const turn_off = (i: number) => {
<div class="ad_container group">
<nuxt-img class="ad" :src="i.img" />
<div i-carbon-close class="ad_close group-hover:opacity-100" @click="turn_off(parseInt(index))" />
</div>
<div class="txt_container">
<div class="txt">
广告
<div class="txt_container">
<div class="txt">
广告
</div>
</div>
</div>
</div>
Expand All @@ -47,11 +47,10 @@ const turn_off = (i: number) => {
}
.txt_container {
@apply font-[20px]
@apply absolute translate-y-[14.3rem] translate-x-[-0.7rem]
}
.txt {
@apply absolute translate-y-[-3.5rem] translate-x-[16.5rem]
@apply text-light-50 px-1.5 bg-[rgba(0,0,0,.2)]
@apply rounded-md border-white border-1
}
Expand Down

0 comments on commit c3c5136

Please sign in to comment.