mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-25 08:30:58 -05:00
feat(tooltip): add new tooltip animation
This commit is contained in:
parent
f509acbe80
commit
ddbef13a12
2 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,7 @@ export default function Tooltip(props: Props) {
|
||||||
const { children, content, ...tippyProps } = props;
|
const { children, content, ...tippyProps } = props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tippy content={content} {...tippyProps}>
|
<Tippy content={content} animation="shift-away" {...tippyProps}>
|
||||||
{/*
|
{/*
|
||||||
// @ts-expect-error Type mis-match. */}
|
// @ts-expect-error Type mis-match. */}
|
||||||
<div style={`display: flex;`}>{children}</div>
|
<div style={`display: flex;`}>{children}</div>
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
@import "react-overlapping-panels/dist";
|
@import "react-overlapping-panels/dist";
|
||||||
@import "tippy.js/dist/tippy.css";
|
@import "tippy.js/dist/tippy.css";
|
||||||
|
@import "tippy.js/animations/shift-away.css";
|
||||||
|
|
||||||
.tippy-box {
|
.tippy-box {
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
|
|
Loading…
Reference in a new issue