File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change 11import "@patternfly/react-core/dist/styles/base.css" ;
22import "@patternfly/chatbot/dist/css/main.css" ;
3+ import "../global.css" ;
4+
35import isArray from "lodash/isArray" ;
46import isEmpty from "lodash/isEmpty" ;
57import map from "lodash/map" ;
Original file line number Diff line number Diff line change @@ -27,27 +27,11 @@ const ImageComponent: React.FC<ImageComponentProps> = ({
2727 < img
2828 src = { image }
2929 alt = { title }
30- style = { {
31- width : "100%" ,
32- height : "auto" ,
33- borderRadius : "var(--pf-global--BorderRadius--sm)" ,
34- objectFit : "cover" ,
35- } }
30+ className = "image-component-img"
3631 onError = { ( ) => setImageError ( true ) }
3732 />
3833 ) : (
39- < div
40- style = { {
41- width : "100%" ,
42- height : "200px" ,
43- backgroundColor : "var(--pf-global--Color--200)" ,
44- borderRadius : "var(--pf-global--BorderRadius--sm)" ,
45- display : "flex" ,
46- alignItems : "center" ,
47- justifyContent : "center" ,
48- color : "var(--pf-global--Color--300)" ,
49- } }
50- >
34+ < div className = "image-component-placeholder" >
5135 { imageError ? "Image failed to load" : "No image provided" }
5236 </ div >
5337 ) }
You can’t perform that action at this time.
0 commit comments