fix tooltip padding on website
This commit is contained in:
parent
e76a4beb4d
commit
2abb3968dd
|
@ -165,7 +165,6 @@ export const Modal: ModalType = ({ children, container, close }) => {
|
||||||
}, [close]);
|
}, [close]);
|
||||||
|
|
||||||
const modal = (
|
const modal = (
|
||||||
<SquiggleContainer>
|
|
||||||
<ModalContext.Provider value={{ close }}>
|
<ModalContext.Provider value={{ close }}>
|
||||||
<div className="squiggle">
|
<div className="squiggle">
|
||||||
<div className="fixed inset-0 z-40 flex justify-center items-center">
|
<div className="fixed inset-0 z-40 flex justify-center items-center">
|
||||||
|
@ -174,7 +173,6 @@ export const Modal: ModalType = ({ children, container, close }) => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ModalContext.Provider>
|
</ModalContext.Provider>
|
||||||
</SquiggleContainer>
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return ReactDOM.createPortal(modal, container || el);
|
return ReactDOM.createPortal(modal, container || el);
|
||||||
|
|
|
@ -54,7 +54,7 @@ export const Tooltip: React.FC<Props> = ({ text, children }) => {
|
||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<pre>{text}</pre>
|
<div className="font-mono whitespace-pre">{text}</div>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
)}
|
)}
|
||||||
</AnimatePresence>
|
</AnimatePresence>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user