@etsoo/react 1.4.55 → 1.4.56

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.
@@ -22,6 +22,7 @@ export function MobileListItemRenderer({ data, itemHeight, margins }, renderer)
22
22
  // Loading
23
23
  if (data == null)
24
24
  return React.createElement(LinearProgress, null);
25
+ console.log('margins', margins);
25
26
  // Elements
26
27
  const [title, subheader, actions, children, cardActions] = renderer(data);
27
28
  return (React.createElement(Card, { sx: {
@@ -61,7 +62,8 @@ export function MobileListItemRenderer({ data, itemHeight, margins }, renderer)
61
62
  }
62
63
  } })) : (actions), title: title, titleTypographyProps: { variant: 'body2' }, subheader: subheader, subheaderTypographyProps: { variant: 'caption' } }),
63
64
  React.createElement(CardContent, { sx: {
64
- paddingTop: 0
65
+ paddingTop: 0,
66
+ paddingBottom: cardActions == null ? margins : 0
65
67
  } }, children),
66
- cardActions && cardActions));
68
+ cardActions));
67
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.4.55",
3
+ "version": "1.4.56",
4
4
  "description": "TypeScript ReactJs framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -36,6 +36,8 @@ export function MobileListItemRenderer<T>(
36
36
  // Loading
37
37
  if (data == null) return <LinearProgress />;
38
38
 
39
+ console.log('margins', margins);
40
+
39
41
  // Elements
40
42
  const [title, subheader, actions, children, cardActions] = renderer(data);
41
43
 
@@ -101,12 +103,13 @@ export function MobileListItemRenderer<T>(
101
103
  />
102
104
  <CardContent
103
105
  sx={{
104
- paddingTop: 0
106
+ paddingTop: 0,
107
+ paddingBottom: cardActions == null ? margins : 0
105
108
  }}
106
109
  >
107
110
  {children}
108
111
  </CardContent>
109
- {cardActions && cardActions}
112
+ {cardActions}
110
113
  </Card>
111
114
  );
112
115
  }