umwd-components 0.1.77 → 0.1.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,7 +49,7 @@ function FleetSection(_ref) {
49
49
  }), /*#__PURE__*/React.createElement(material.CardMedia, {
50
50
  sx: {
51
51
  p: 1,
52
- height: "max-content"
52
+ flex: 1
53
53
  }
54
54
  }, /*#__PURE__*/React.createElement(material.Paper, {
55
55
  sx: {
@@ -68,7 +68,9 @@ function FleetSection(_ref) {
68
68
  width: airplane.floorplan.width,
69
69
  height: airplane.floorplan.height,
70
70
  style: {
71
- objectFit: "contain"
71
+ objectFit: "contain",
72
+ width: "100%",
73
+ height: "100%"
72
74
  }
73
75
  }), /*#__PURE__*/React.createElement(material.Box, {
74
76
  sx: {
@@ -26,7 +26,7 @@ function StrapiImage(_ref) {
26
26
  alt: alt,
27
27
  height: height,
28
28
  width: width,
29
- style: style && style
29
+ style: style
30
30
  });
31
31
  }
32
32
 
@@ -47,7 +47,7 @@ function FleetSection(_ref) {
47
47
  }), /*#__PURE__*/React.createElement(CardMedia, {
48
48
  sx: {
49
49
  p: 1,
50
- height: "max-content"
50
+ flex: 1
51
51
  }
52
52
  }, /*#__PURE__*/React.createElement(Paper, {
53
53
  sx: {
@@ -66,7 +66,9 @@ function FleetSection(_ref) {
66
66
  width: airplane.floorplan.width,
67
67
  height: airplane.floorplan.height,
68
68
  style: {
69
- objectFit: "contain"
69
+ objectFit: "contain",
70
+ width: "100%",
71
+ height: "100%"
70
72
  }
71
73
  }), /*#__PURE__*/React.createElement(Box, {
72
74
  sx: {
@@ -24,7 +24,7 @@ function StrapiImage(_ref) {
24
24
  alt: alt,
25
25
  height: height,
26
26
  width: width,
27
- style: style && style
27
+ style: style
28
28
  });
29
29
  }
30
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.77",
3
+ "version": "0.1.78",
4
4
  "description": "UMWD Component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -76,7 +76,7 @@ export function FleetSection({ data }: { readonly data: FleetSectionProps }) {
76
76
  <CardMedia
77
77
  sx={{
78
78
  p: 1,
79
- height: "max-content",
79
+ flex: 1,
80
80
  }}
81
81
  >
82
82
  <Paper
@@ -97,7 +97,11 @@ export function FleetSection({ data }: { readonly data: FleetSectionProps }) {
97
97
  alt={airplane.floorplan.alternativeText}
98
98
  width={airplane.floorplan.width}
99
99
  height={airplane.floorplan.height}
100
- style={{ objectFit: "contain" }}
100
+ style={{
101
+ objectFit: "contain",
102
+ width: "100%",
103
+ height: "100%",
104
+ }}
101
105
  />
102
106
  )}
103
107
  <Box
@@ -27,7 +27,7 @@ export function StrapiImage({
27
27
  alt={alt}
28
28
  height={height}
29
29
  width={width}
30
- style={style && style}
30
+ style={style}
31
31
  />
32
32
  );
33
33
  }