File tree 1 file changed +13
-7
lines changed
1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,13 @@ export function GenericResultViewImage({
28
28
< Fullscreen className = "rfs-size-4" />
29
29
</ Button >
30
30
</ DialogTrigger >
31
- < DialogContent className = "rfs-max-w-[90vw] rfs-max-h-[90vh] rfs-w-auto rfs-overflow-auto" >
32
- < DialogTitle > { title } </ DialogTitle >
33
- < GenericResultViewImageCarousel images = { previewImage } title = { title } fullSize />
31
+ < DialogContent className = "rfs-max-w-[90vw] rfs-max-h-[90vh] rfs-w-fit !rfs-p-0 rfs-overflow-auto" >
32
+ < div className = { "rfs-p-4" } >
33
+ < GenericResultViewImageCarousel images = { previewImage } title = { title } fullSize />
34
+ </ div >
35
+ < div className = "rfs-bg-muted rfs-p-4 rfs-rounded-b-lg" >
36
+ < DialogTitle > { title } </ DialogTitle >
37
+ </ div >
34
38
</ DialogContent >
35
39
</ Dialog >
36
40
</ div >
@@ -43,10 +47,12 @@ export function GenericResultViewImage({
43
47
alt = { `Preview for ${ title } ` }
44
48
/>
45
49
</ DialogTrigger >
46
- < DialogContent className = "rfs-p-4 rfs-max-w-none !rfs-w-auto" >
47
- < DialogTitle > { title } </ DialogTitle >
48
- < div className = "rfs-justify-center rfs-flex" >
49
- < img className = "rfs-max-w-[90vw] rfs-max-h-[90vh]" src = { previewImage } alt = { `Preview for ${ title } ` } />
50
+ < DialogContent className = "!rfs-p-0 !rfs-max-w-[calc(100vw-40px)] !rfs-max-h-[calc(100vh-40px)] !rfs-w-fit rfs-overflow-auto" >
51
+ < div className = "rfs-justify-center rfs-flex rfs-p-4" >
52
+ < img src = { previewImage } alt = { `Preview for ${ title } ` } />
53
+ </ div >
54
+ < div className = "rfs-bg-muted rfs-p-4 rfs-rounded-b-lg" >
55
+ < DialogTitle > { title } </ DialogTitle >
50
56
</ div >
51
57
</ DialogContent >
52
58
</ Dialog >
You can’t perform that action at this time.
0 commit comments