Skip to content

Commit

Permalink
Preventing overflow issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjampen committed Feb 25, 2024
1 parent e49bc83 commit aa85524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/VersionUpdate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ export default function VersionUpdate({ show, data }) {
if (isOpen) {
return (
<div className="fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0">
<div className="fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full">
<div className="max-h-[80vh] overflow-y-scroll fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full">
<img src={currentInfo.image_path} alt="" className='w-full' />
<h2 className="flex flex-col space-y-2 text-2xl text-center sm:text-left">{currentInfo.title}</h2>
<p dangerouslySetInnerHTML={{ __html: currentInfo.description }}></p>
<p dangerouslySetInnerHTML={{ __html: currentInfo.description }} className="max-h-[200px] overflow-y-scroll"></p>
<div className="flex flex-col gap-1 mt-2">
<Button onClick={continueInfo}>Continue</Button>
{/* <Button variant="ghost" className="hover:bg-transparent" onClick={() => closeInfo("dismiss")}>Dismiss</Button> */}
Expand Down

0 comments on commit aa85524

Please sign in to comment.