Skip to content

Commit e6ec2f9

Browse files
committed
fix: image in lightbox having restricted hight
1 parent 7d8e409 commit e6ec2f9

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

src/components/ui/Image.tsx

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -56,39 +56,17 @@ export const Image = ({ src, alt, type, classNames, ...props }: ImageProps) => {
5656
)}
5757
/>
5858
</DialogTrigger>
59-
<DialogContent className="p-2 border">
59+
<DialogContent className="[&>button]:bg-black [&>button]:p-1 p-2 border">
6060
<img
6161
loading="lazy"
6262
src={src}
6363
alt={alt}
6464
{...props}
65-
className={cn(
66-
classNames?.image,
67-
experiments.streamerMode && 'filter blur-md',
68-
type === 'banner' && 'aspect-video w-full',
69-
)}
65+
className={cn(experiments.streamerMode && 'filter blur-md', type === 'banner' && 'aspect-video w-full')}
7066
/>
7167
<span>{alt}</span>
7268
</DialogContent>
7369
</Dialog>
7470
</div>
7571
);
7672
};
77-
78-
// {/* {isFullscreen && (
79-
// <div className="z-50" onClick={imageOnClick}>
80-
// <div className="relative">
81-
// <div className="fixed top-0 bottom-0 left-0 right-0">
82-
// <div className="fixed top-0 bottom-0 left-0 right-0 bg-black bg-opacity-90" />
83-
// <div className="fixed top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-3/4">
84-
// <img
85-
// src={src}
86-
// alt={alt}
87-
// {...props}
88-
// className={cn(classNames?.image, 'h-full w-full', experiments.streamerMode && 'filter blur-md')}
89-
// />
90-
// </div>
91-
// </div>
92-
// </div>
93-
// </div>
94-
// )} */}

0 commit comments

Comments
 (0)