Commit e74be169 by Daniel Lee

Merge remote-tracking branch 'upstream/11053-remove-native-scrollbar' into…

Merge remote-tracking branch 'upstream/11053-remove-native-scrollbar' into 11053-remove-native-scrollbar
parents 83f7ac18 a1b53674
...@@ -29,7 +29,11 @@ export function pageScrollbar() { ...@@ -29,7 +29,11 @@ export function pageScrollbar() {
scope.$on('$routeChangeSuccess', () => { scope.$on('$routeChangeSuccess', () => {
lastPos = 0; lastPos = 0;
elem[0].scrollTop = 0; elem[0].scrollTop = 0;
elem[0].focus();
}); });
elem[0].tabIndex = -1;
elem[0].focus();
}, },
}; };
} }
......
...@@ -113,7 +113,8 @@ module.directive('grafanaPanel', function($rootScope, $document, $timeout) { ...@@ -113,7 +113,8 @@ module.directive('grafanaPanel', function($rootScope, $document, $timeout) {
`; `;
let scrollRoot = panelContent; let scrollRoot = panelContent;
let scroller = panelContent.find(':first-child').find(':first-child'); let scroller = panelContent.find(':first').find(':first');
scrollRoot.addClass(scrollRootClass); scrollRoot.addClass(scrollRootClass);
$(scrollBarHTML).appendTo(scrollRoot); $(scrollBarHTML).appendTo(scrollRoot);
scroller.addClass(scrollerClass); scroller.addClass(scrollerClass);
......
<div class="dashlist" ng-repeat="group in ctrl.groups"> <div>
<div class="dashlist-section" ng-if="group.show"> <div class="dashlist" ng-repeat="group in ctrl.groups">
<h6 class="dashlist-section-header" ng-show="ctrl.panel.headings"> <div class="dashlist-section" ng-if="group.show">
{{group.header}} <h6 class="dashlist-section-header" ng-show="ctrl.panel.headings">
</h6> {{group.header}}
<div class="dashlist-item" ng-repeat="dash in group.list"> </h6>
<a class="dashlist-link dashlist-link-{{dash.type}}" href="{{dash.url}}"> <div class="dashlist-item" ng-repeat="dash in group.list">
<span class="dashlist-title"> <a class="dashlist-link dashlist-link-{{dash.type}}" href="{{dash.url}}">
{{dash.title}} <span class="dashlist-title">
</span> {{dash.title}}
<span class="dashlist-star" ng-click="ctrl.starDashboard(dash, $event)"> </span>
<i class="fa" ng-class="{'fa-star': dash.isStarred, 'fa-star-o': dash.isStarred === false}"></i> <span class="dashlist-star" ng-click="ctrl.starDashboard(dash, $event)">
</span> <i class="fa" ng-class="{'fa-star': dash.isStarred, 'fa-star-o': dash.isStarred === false}"></i>
</a> </span>
</a>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -268,10 +268,14 @@ ...@@ -268,10 +268,14 @@
} }
} }
.baron._scrolling > .baron__track .baron__bar { .panel-hover-highlight .baron__track .baron__bar {
opacity: 0.6; opacity: 0.6;
} }
.baron._scrolling > .baron__track .baron__bar {
opacity: 0.9;
}
.baron__control { .baron__control {
display: none; display: none;
} }
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</div> </div>
<div class="main-view"> <div class="main-view">
<div class="scroll-canvas"> <div class="scroll-canvas" page-scrollbar>
<div ng-view></div> <div ng-view></div>
<footer class="footer"> <footer class="footer">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment