DashboardGrid: Refactorings and performance improvements (#35942)

* add back only re-render dashboard first time on layout change

* remove panel refs

* Updates

* Improved is in view logic

* Updates

* Remove unnessary auto sizer

* Found another approach that works with resize as well

* Updates

* fixing test

* Fixing ref issues

* Fixed mobile size handling, and view panel handling, removed now unnessary logic

* Updated snapshot
This commit is contained in:
Torkel Ödegaard
2021-06-22 14:44:18 +02:00
committed by GitHub
parent fcb4e5a211
commit f0cac149da
11 changed files with 231 additions and 1357 deletions

View File

@@ -17,10 +17,6 @@
}
.panel-in-fullscreen {
.react-grid-layout {
height: 90% !important;
}
.react-grid-item {
display: none !important;
transition-property: none !important;
@@ -28,8 +24,6 @@
&--fullscreen {
display: block !important;
position: unset !important;
width: 100% !important;
height: 100% !important;
transform: translate(0px, 0px) !important;
}
}
@@ -54,15 +48,10 @@
}
@include media-breakpoint-down(sm) {
.react-grid-layout {
height: 100% !important;
}
.react-grid-item {
display: block !important;
transition-property: none !important;
position: unset !important;
width: 100% !important;
transform: translate(0px, 0px) !important;
margin-bottom: $space-md;
}