mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 15:48:32 -06:00
tooltip scrolling fixed
This commit is contained in:
@@ -20,7 +20,7 @@ export default async function RootLayout({
|
||||
return (
|
||||
<html lang="en">
|
||||
<head></head>
|
||||
<body className="flex justify-center" suppressHydrationWarning>
|
||||
<body className="flex justify-center h-screen" suppressHydrationWarning>
|
||||
<div className="bg-gray-950 h-screen text-slate-300 w-screen sm:p-1">
|
||||
<MyToaster />
|
||||
<Suspense>
|
||||
|
||||
@@ -50,18 +50,14 @@ export default function Modal({
|
||||
|
||||
<div
|
||||
className={
|
||||
" fixed inset-0 flex items-center justify-center transition-all duration-400 h-screen w-screen " +
|
||||
" bg-black" +
|
||||
(modalControl.isOpen
|
||||
? " bg-opacity-50 z-50 "
|
||||
: " bg-opacity-0 -z-50 ")
|
||||
modalControl.isOpen
|
||||
? "transition-all duration-400 fixed inset-0 flex items-center justify-center h-screen bg-black/80 z-50 w-screen"
|
||||
: "hidden h-0 w-0 p-1 -z-50"
|
||||
}
|
||||
onClick={modalControl.closeModal}
|
||||
// if mouse up here, do not, if mouse down then still do
|
||||
>
|
||||
<div
|
||||
onClick={(e) => {
|
||||
// e.preventDefault();
|
||||
e.stopPropagation();
|
||||
}}
|
||||
className={
|
||||
|
||||
@@ -21,7 +21,7 @@ export const Tooltip: React.FC<{
|
||||
" transition-opacity duration-150 " +
|
||||
" border border-slate-700 shadow-[0px_0px_10px_5px] shadow-slate-500/20 " +
|
||||
" max-w-sm max-h-64 overflow-hidden " +
|
||||
(visible ? " opacity-100 " : " opacity-0 pointer-events-none ")
|
||||
(visible ? " opacity-100 " : " opacity-0 pointer-events-none hidden ")
|
||||
}
|
||||
role="tooltip"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user