-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add offset for tooltip hover to avoid flick
- Loading branch information
Showing
5 changed files
with
19 additions
and
43 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 12 additions & 15 deletions
27
packages/valaxy/client/components/ValaxyFootnoteTooltip.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
<script lang="ts"> | ||
import { PopperWrapper } from 'floating-vue' | ||
const Component = ({ | ||
...PopperWrapper, | ||
name: 'ValaxyFootnoteTooltip', | ||
vPopperTheme: 'tooltip', | ||
}) as unknown as typeof PopperWrapper | ||
export default Component | ||
<script setup lang="ts"> | ||
import { Tooltip } from 'floating-vue' | ||
// distance offset for sup | ||
</script> | ||
|
||
<style scoped> | ||
div .v-popper { | ||
display: inline | ||
} | ||
</style> | ||
<template> | ||
<Tooltip class="inline-block" :distance="8"> | ||
<slot /> | ||
|
||
<template #popper> | ||
<slot name="popper" /> | ||
</template> | ||
</Tooltip> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1ecbd0b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://yun.valaxy.site as production
🚀 Deployed on https://672cce0e8c75e493d4cf6172--valaxy.netlify.app