mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-11-08 04:31:03 +00:00
feat(tooltip): add new tooltip animation
This commit is contained in:
1 parent
f509acbe80
commit
ddbef13a12
2 files changed
+2
-1
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user