File tree 2 files changed +28
-1
lines changed
2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change
1
+ .container {
2
+ display : block;
3
+ margin-right : auto;
4
+ margin-left : auto;
5
+ width : 50% ;
6
+ height : 50% ;
7
+ }
8
+
9
+ @media only screen and (max-width : 1080px ) {
10
+ .container {
11
+ width : 100% ;
12
+ height : 100% ;
13
+ }
14
+ }
15
+
16
+ @media only screen and (max-width : 1280px ) {
17
+ .container {
18
+ width : 75% ;
19
+ height : 75% ;
20
+ }
21
+ }
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
+ import { Card } from '@patternfly/react-core' ;
3
+ import styles from './GifPlayer.module.css' ;
2
4
3
5
export interface GifPlayerProps
4
6
extends React . DetailedHTMLProps < React . ImgHTMLAttributes < HTMLImageElement > , HTMLImageElement > {
@@ -14,4 +16,8 @@ export const GifPlayer: React.FC<GifPlayerProps> = ({
14
16
className = '' ,
15
17
alt = 'loading...' ,
16
18
...props
17
- } : GifPlayerProps ) => < img { ...props } className = { className } src = { src } alt = { alt } /> ;
19
+ } : GifPlayerProps ) => (
20
+ < Card className = { styles . container } >
21
+ < img { ...props } className = { className } src = { src } alt = { alt } />
22
+ </ Card >
23
+ ) ;
You can’t perform that action at this time.
0 commit comments