mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
The first item in the dashlist has a margin that messes up the height calculation for the scroll bar when the Show headings option is not selected. This fix adds a margin-top set to 0 for the 1st item in the list in this case. This prevents a scrollbar being shown incorrectly. Fixes #10772
18 lines
756 B
HTML
18 lines
756 B
HTML
<div class="dashlist" ng-repeat="group in ctrl.groups">
|
|
<div class="dashlist-section" ng-if="group.show">
|
|
<h6 class="dashlist-section-header" ng-show="ctrl.panel.headings">
|
|
{{group.header}}
|
|
</h6>
|
|
<div class="dashlist-item" ng-repeat="dash in group.list">
|
|
<a class="dashlist-link dashlist-link-{{dash.type}}" ng-class="{'dashlist-link--no-section-header ':$first && !ctrl.panel.headings}" href="{{dash.url}}">
|
|
<span class="dashlist-title">
|
|
{{dash.title}}
|
|
</span>
|
|
<span class="dashlist-star" ng-click="ctrl.starDashboard(dash, $event)">
|
|
<i class="fa" ng-class="{'fa-star': dash.isStarred, 'fa-star-o': dash.isStarred === false}"></i>
|
|
</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|