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,16 +165,14 @@ export const Modal: ModalType = ({ children, container, close }) => {
}, [close]);
const modal = (
<SquiggleContainer>
<ModalContext.Provider value={{ close }}>
<div className="squiggle">
<div className="fixed inset-0 z-40 flex justify-center items-center">
<Overlay />
<ModalWindow container={container}>{children}</ModalWindow>
</div>
<ModalContext.Provider value={{ close }}>
<div className="squiggle">
<div className="fixed inset-0 z-40 flex justify-center items-center">
<Overlay />
<ModalWindow container={container}>{children}</ModalWindow>
</div>
</ModalContext.Provider>
</SquiggleContainer>
</div>
</ModalContext.Provider>
);
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>
)}
</AnimatePresence>