Skip to content

Commit 6c42aae

Browse files
committed
Add a background color to the back-to-top button
1 parent 8472fdc commit 6c42aae

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

components/Assistant.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,11 @@ export default defineComponent({
410410
</div>
411411
</div>
412412
</CoreScrollable>
413-
<CoreButton v-if="showBackToTop" :layer="1" class="absolute p-2 right-4 bottom-4" @click="scrollToTop">
414-
<AssetArrowUp class="w-4" />
415-
</CoreButton>
413+
<CoreLayer class="absolute right-4 bottom-4">
414+
<CoreButton v-if="showBackToTop" class="p-2 bg-layer" @click="scrollToTop">
415+
<AssetArrowUp class="w-4" />
416+
</CoreButton>
417+
</CoreLayer>
416418
</div>
417419
<CoreLayer as="section" class="bg-layer">
418420
<CoreDivider />

0 commit comments

Comments
 (0)