Skip to content

Commit

Permalink
Fix height and width values in modal.tsx and fullImagePage.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
mazwrld committed May 19, 2024
1 parent 373b935 commit 158cfef
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/@modal/(.)images/[id]/modal.tsx
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ export function Modal({ children }: { children: React.ReactNode }) {
return createPortal(
<dialog
ref={dialogRef}
className="m-0 h-full w-svw bg-slate-950/90 text-white"
className="m-0 h-svh w-svw bg-slate-950/90 text-white"
onClose={onDismiss}
>
{children}
4 changes: 2 additions & 2 deletions components/fullImagePage.tsx
Original file line number Diff line number Diff line change
@@ -11,8 +11,8 @@ export default async function FullPageImageView(props: { imageId: number }) {
const image = await getUserImage(idAsNumber)
const uploaderInfo = await clerkClient.users.getUser(image.userId)
return (
<div className="flex h-svh w-svw min-w-0">
<div className="relative h-svh w-svw">
<div className="flex h-full w-full min-w-0">
<div className="relative h-full w-full">
<Image
src={image.url}
alt={image.name}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -64,5 +64,5 @@
"ct3aMetadata": {
"initVersion": "7.30.2"
},
"packageManager": "pnpm@9.0.4"
"packageManager": "pnpm@9.1.1"
}

0 comments on commit 158cfef

Please sign in to comment.