Skip to content

Commit

Permalink
fix: fix BackToTop z-index issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZL-Asica committed Nov 28, 2024
1 parent 405e769 commit 3c54023
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/ui/BackToTop.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<div
v-if="showButton"
class="fixed bottom-4 right-4"
class="fixed bottom-4 right-4 z-10"
>
<button
class="flex h-12 w-12 items-center justify-center rounded-full bg-tiaBlue p-4 text-light-foreground shadow-lg transition-transform duration-300 ease-in-out hover:scale-110 hover:bg-tiaBlue-dark focus:outline-none dark:bg-tiaPink dark:text-dark-foreground dark:hover:bg-tiaPink-dark"
class="flex h-12 w-12 items-center justify-center rounded-full bg-tiaBlue p-4 text-white shadow-lg transition-transform duration-300 ease-in-out hover:scale-110 hover:bg-tiaBlue-dark focus:outline-none dark:bg-tiaPink dark:hover:bg-tiaPink-dark"
@click="scrollToTop"
>
<Icon
Expand Down
4 changes: 2 additions & 2 deletions docs/DEV.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ types
- 避免过多的注释,代码应该尽可能自解释。

4. **命名规范**:
- 变量、函数和组件名应该具有描述性,使用 camelCase 格式。
- 文件夹和文件名使用小写字母和中划线(例如:`my-component.vue`)。
- 变量、函数名应该具有描述性,使用 camelCase 格式。
- 文件名和组件名使用 PascalCase(例如:`Component.vue`)。

---

Expand Down

0 comments on commit 3c54023

Please sign in to comment.