@pautena/react-design-system 0.7.4 → 0.7.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pautena/react-design-system",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "My custom design system on top of MUI",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -48,10 +48,20 @@ export const Board = ({
48
48
  const markdown = markdownProps && <Markdown content={markdownProps} />;
49
49
 
50
50
  return (
51
- <Paper sx={{ pl: 2, pr: 4, py: 1, backgroundColor: blueGrey[800], color: "white", ...sx }}>
51
+ <Paper
52
+ sx={{
53
+ position: "relative",
54
+ pl: 2,
55
+ pr: 4,
56
+ py: 1,
57
+ backgroundColor: blueGrey[800],
58
+ color: "white",
59
+ ...sx,
60
+ }}
61
+ >
52
62
  <Box display="flex" flexDirection="row">
53
63
  <Box width={1}>{children || markdown || content}</Box>
54
- <Box sx={{ position: "absolute", top: themeSpacing(2), right: themeSpacing(2) }}>
64
+ <Box sx={{ position: "absolute", top: themeSpacing(0.5), right: themeSpacing(0.5) }}>
55
65
  {copyContent && (
56
66
  <IconButton
57
67
  aria-label="copy board content"
@@ -59,7 +69,7 @@ export const Board = ({
59
69
  onClick={() => navigator.clipboard.writeText(copyContent)}
60
70
  >
61
71
  <Tooltip title="Copy">
62
- <ContentCopyIcon sx={{ fontSize: typography.pxToRem(22) }} />
72
+ <ContentCopyIcon sx={{ fontSize: typography.pxToRem(18) }} />
63
73
  </Tooltip>
64
74
  </IconButton>
65
75
  )}