File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
src/editors/sharedComponents/SelectionModal Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -28,19 +28,15 @@ const GalleryCard = ({
28
28
>
29
29
< div className = "card-div d-flex flex-row flex-nowrap align-items-center" >
30
30
< div
31
- className = "position-relative"
32
- style = { {
33
- width : '200px' ,
34
- height : '100px' ,
35
- } }
31
+ className = "row justify-content-center align-itmes-center p-2"
36
32
>
37
33
{ ( thumbnailError && thumbnailFallback ) ? (
38
34
< div style = { { width : '200px' , height : '100px' } } >
39
35
{ thumbnailFallback }
40
36
</ div >
41
37
) : (
42
38
< Image
43
- style = { { border : 'none' , width : '200px' , height : '100px' } }
39
+ className = "selection-modal-image-thumbnail"
44
40
src = { asset . externalUrl }
45
41
onError = { thumbnailFallback && ( ( ) => setThumbnailError ( true ) ) }
46
42
/>
Original file line number Diff line number Diff line change 30
30
margin-bottom : .4375rem ;
31
31
margin-top : .4375rem ;
32
32
}
33
+
34
+ .selection-modal-image-thumbnail {
35
+ width : 180px ;
36
+ height : 101.25px ;
37
+ object-fit : contain ;
38
+ max-width : 100% ;
39
+ max-height : 100% ;
40
+ }
You can’t perform that action at this time.
0 commit comments