Skip to content

Commit

Permalink
Center fullscreen images
Browse files Browse the repository at this point in the history
  • Loading branch information
shiro committed Apr 26, 2024
1 parent 621b9f0 commit 4166d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DialogImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const DialogImage: Component<Props> = (props) => {
/>
<div class="fixed inset-0 z-50 flex items-center justify-center">
<Dialog.Content class="flex max-h-[90vh] items-center justify-center s:max-w-[90vw]">
<Dialog.CloseButton>
<Dialog.CloseButton class="flex justify-center">
<props.image
class={cn(_FullscreenImage, "overflow-hidden object-contain")}
alt={alt}
Expand Down

0 comments on commit 4166d5e

Please sign in to comment.