panels: add css tweaks for scrollable panels

This commit is contained in:
Alexander Zobnin 2017-11-17 12:13:56 +03:00
parent 126f3703dc
commit 490b8fc50f
3 changed files with 9 additions and 9 deletions

View File

@ -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>

View File

@ -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;
}
}

View File

@ -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 {