Skip to content

Commit

Permalink
refactor: add default option for UTooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Aug 15, 2024
1 parent 9e36aa5 commit f608c0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions apps/client/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export default defineAppConfig({
container: {
base: "py-5",
},
tooltip: {
wrapper: "flex justify-center items-center",
strategy: "override",
},
kbd: {
default: {
size: "md",
Expand Down
5 changes: 1 addition & 4 deletions apps/client/components/Home/CalendarGraph.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@
v-for="(cell, j) in row"
:key="j"
>
<UTooltip
:text="cell?.tips"
:ui="{ wrapper: '', strategy: 'override' }"
>
<UTooltip :text="cell?.tips">
<div
class="cell block"
:class="[cell?.bg]"
Expand Down

0 comments on commit f608c0e

Please sign in to comment.