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