File tree Expand file tree Collapse file tree
src/components/map-projects Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4738,6 +4738,15 @@ const MapProject = () => {
47384738 }
47394739 }
47404740
4741+ const getGridHeightFactor = ( ) => {
4742+ let minFactor = 253
4743+ if ( project ?. id )
4744+ minFactor += 10
4745+ if ( selectedRowIds ?. length )
4746+ minFactor += 52
4747+ return minFactor
4748+ }
4749+
47414750 return permissionDenied ? < Error403 /> : (
47424751 < div className = 'col-xs-12 padding-0' style = { { borderRadius : '10px' , width : 'calc(100vw - 32px)' } } >
47434752 {
@@ -4979,7 +4988,7 @@ const MapProject = () => {
49794988 </ Alert >
49804989 </ Snackbar >
49814990 < div
4982- style = { { width : '100%' , height : project ?. id ? ' calc(100vh - 263px)' : 'calc(100vh - 250px)' } }
4991+ style = { { width : '100%' , height : ` calc(100vh - ${ getGridHeightFactor ( ) } px)` } }
49834992 onPointerDownCapture = { handleGridPointerDownCapture }
49844993 >
49854994 < DataGrid
You can’t perform that action at this time.
0 commit comments