mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 04:34:23 -06:00
panels: add css tweaks for scrollable panels
This commit is contained in:
parent
126f3703dc
commit
490b8fc50f
@ -22,7 +22,9 @@ var panelTemplate = `
|
||||
|
||||
<div class="panel-content">
|
||||
<div gemini-scrollbar ng-if="ctrl.scrollable">
|
||||
<ng-transclude></ng-transclude>
|
||||
<div class="panel-content--scrollable">
|
||||
<ng-transclude></ng-transclude>
|
||||
</div>
|
||||
</div>
|
||||
<ng-transclude ng-if="!ctrl.scrollable"></ng-transclude>
|
||||
</div>
|
||||
|
@ -7,12 +7,6 @@
|
||||
margin-bottom: $spacer;
|
||||
}
|
||||
|
||||
.dashlist {
|
||||
// Add space for scrollbar
|
||||
margin-right: 6px;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.dashlist-link {
|
||||
display: block;
|
||||
margin: 5px;
|
||||
@ -31,5 +25,3 @@
|
||||
background-color: $tight-form-func-bg;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -39,6 +39,12 @@ div.flot-text {
|
||||
.panel-content {
|
||||
padding: 0px 10px 5px 10px;
|
||||
height: 100%;
|
||||
|
||||
&--scrollable {
|
||||
// Add space for scrollbar
|
||||
padding-right: 10px;
|
||||
padding-left: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
.panel-title-container {
|
||||
|
Loading…
Reference in New Issue
Block a user