fix tooltip padding on website

This commit is contained in:
Vyacheslav Matyukhin 2022-07-26 20:47:42 +04:00
parent e76a4beb4d
commit 2abb3968dd
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C
2 changed files with 8 additions and 10 deletions

View File

@ -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);

View File

@ -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>