Switch chart button to an icon
This commit is contained in:
parent
32efd9d635
commit
71f196e9c2
2 changed files with 16 additions and 4 deletions
|
@ -21,6 +21,20 @@ html, body {
|
|||
border-bottom: 1px dashed #aaa;
|
||||
}
|
||||
|
||||
.toggle-icon {
|
||||
font-size: 22px;
|
||||
padding: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
i.toggle-icon:hover {
|
||||
color: steelblue;
|
||||
}
|
||||
|
||||
.toggle-icon.active {
|
||||
border-radius: 4px;
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.entity-reference .prefix {
|
||||
color: #aaa;
|
||||
|
|
|
@ -6,10 +6,8 @@
|
|||
<div class="container header">
|
||||
<b>Usage logs for the last seven days</b>
|
||||
<span class="right">
|
||||
<button class="btn btn-default btn-toggle" ng-class="chartVisible ? 'active' : ''" ng-click="toggleChart()">
|
||||
Show Chart
|
||||
<i class="fa" ng-class="chartVisible ? 'fa-toggle-down' : 'fa-toggle-right'" style="margin-left: 10px"></i>
|
||||
</button>
|
||||
<i class="fa fa-bar-chart-o toggle-icon" ng-class="chartVisible ? 'active' : ''"
|
||||
ng-click="toggleChart()" title="Toggle Chart" bs-tooltip="tooltip.title"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
|
Reference in a new issue