@campxdev/shared 1.11.58 → 1.11.60

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": "@campxdev/shared",
3
- "version": "1.11.58",
3
+ "version": "1.11.60",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -27,8 +27,6 @@ export default function LayoutWrapper({
27
27
  console.log('hi')
28
28
  setOpen(!open)
29
29
  }
30
-
31
- console.log(window.innerWidth)
32
30
  return (
33
31
  <ErrorBoundary>
34
32
  {window.innerWidth > 1024 && !permissions.isHomePageEnabled && (
@@ -51,11 +51,16 @@ export const StyledLeftNavContainer = muiStyled('aside')(({ theme }) => ({
51
51
  }))
52
52
 
53
53
  export const StyledMainContentContainer = muiStyled('main')(() => ({
54
- width: `calc(100% - ${sideNavWidth})`,
54
+ width:
55
+ window.innerWidth > 1024
56
+ ? `calc(100% - ${sideNavWidth})`
57
+ : '100% !important',
55
58
  height: `calc(100vh - ${headerHeight})`,
56
59
  position: 'fixed',
57
60
  top: headerHeight,
58
- left: sideNavWidth,
61
+ left: window.innerWidth > 1024 ? sideNavWidth : 0,
62
+ right: window.innerWidth > 1024 ? 'unset' : 0,
63
+ bottom: window.innerWidth > 1024 ? 'unset' : 0,
59
64
  overflowY: 'auto',
60
65
 
61
66
  '&::-webkit-scrollbar': {
@@ -71,13 +76,6 @@ export const StyledMainContentContainer = muiStyled('main')(() => ({
71
76
  },
72
77
  },
73
78
 
74
- ['@media (max-width: 760px)']: {
75
- left: 0,
76
- right: 0,
77
- bottom: 0,
78
- width: '100% !important',
79
- },
80
-
81
79
  // '&::-webkit-scrollbar': {
82
80
  // width: '0.6em',
83
81
  // height: '0.6em',