mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user