mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-25 23:22:06 -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;
|
||||
|
||||
return (
|
||||
<Tippy content={content} {...tippyProps}>
|
||||
<Tippy content={content} animation="shift-away" {...tippyProps}>
|
||||
{/*
|
||||
// @ts-expect-error Type mis-match. */}
|
||||
<div style={`display: flex;`}>{children}</div>
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
@import "react-overlapping-panels/dist";
|
||||
@import "tippy.js/dist/tippy.css";
|
||||
@import "tippy.js/animations/shift-away.css";
|
||||
|
||||
.tippy-box {
|
||||
color: var(--foreground);
|
||||
|
|
Loading…
Reference in a new issue