align icon in context menu

This commit is contained in:
MaysWind 2019-01-27 22:18:04 +08:00
parent 680c663a7f
commit c9bfd5e918
2 changed files with 15 additions and 15 deletions

View file

@ -78,90 +78,90 @@
<ul class="dropdown-menu" role="menu"> <ul class="dropdown-menu" role="menu">
<li ng-if="isSelectedTaskRetryable()"> <li ng-if="isSelectedTaskRetryable()">
<a tabindex="-1" class="pointer-cursor" title="{{'Retry Selected Tasks' | translate}}" ng-click="retryTasks()"> <a tabindex="-1" class="pointer-cursor" title="{{'Retry Selected Tasks' | translate}}" ng-click="retryTasks()">
<i class="fa fa-refresh"></i> <i class="fa fa-refresh fa-fw"></i>
<span translate>Retry Selected Tasks</span> <span translate>Retry Selected Tasks</span>
</a> </a>
</li> </li>
<li class="divider" ng-if="isSelectedTaskRetryable()"></li> <li class="divider" ng-if="isSelectedTaskRetryable()"></li>
<li ng-if="isSpecifiedTaskSelected('paused')"> <li ng-if="isSpecifiedTaskSelected('paused')">
<a tabindex="-1" class="pointer-cursor" title="{{'Start' | translate}}" ng-click="changeTasksState('start')"> <a tabindex="-1" class="pointer-cursor" title="{{'Start' | translate}}" ng-click="changeTasksState('start')">
<i class="fa fa-play"></i> <i class="fa fa-play fa-fw"></i>
<span translate>Start</span> <span translate>Start</span>
</a> </a>
</li> </li>
<li ng-if="isSpecifiedTaskSelected('active', 'waiting')"> <li ng-if="isSpecifiedTaskSelected('active', 'waiting')">
<a tabindex="-1" class="pointer-cursor" title="{{'Pause' | translate}}" ng-click="changeTasksState('pause')"> <a tabindex="-1" class="pointer-cursor" title="{{'Pause' | translate}}" ng-click="changeTasksState('pause')">
<i class="fa fa-pause"></i> <i class="fa fa-pause fa-fw"></i>
<span translate>Pause</span> <span translate>Pause</span>
</a> </a>
</li> </li>
<li ng-if="isTaskSelected()"> <li ng-if="isTaskSelected()">
<a tabindex="-1" class="pointer-cursor" title="{{'Delete' | translate}}" ng-click="removeTasks()"> <a tabindex="-1" class="pointer-cursor" title="{{'Delete' | translate}}" ng-click="removeTasks()">
<i class="fa fa-trash-o"></i> <i class="fa fa-trash-o fa-fw"></i>
<span translate>Delete</span> <span translate>Delete</span>
</a> </a>
</li> </li>
<li class="divider" ng-if="isTaskSelected()"></li> <li class="divider" ng-if="isTaskSelected()"></li>
<li class="dropdown dropdown-submenu"> <li class="dropdown dropdown-submenu">
<a tabindex="-1" title="{{'Display Order' | translate}}" href="javascript:void(0);"> <a tabindex="-1" title="{{'Display Order' | translate}}" href="javascript:void(0);">
<i class="fa fa-sort-alpha-asc"></i> <i class="fa fa-sort-alpha-asc fa-fw"></i>
<span translate>Display Order</span> <span translate>Display Order</span>
</a> </a>
<ul class="dropdown-menu" style="right: 160px;"> <ul class="dropdown-menu" style="right: 160px;">
<li> <li>
<a class="pointer-cursor" ng-click="changeDisplayOrder('default:asc')"> <a class="pointer-cursor" ng-click="changeDisplayOrder('default:asc')">
<span translate>Default</span> <span translate>Default</span>
<i class="fa" ng-class="{'fa-check': isSetDisplayOrder('default')}"></i> <i class="fa fa-fw" ng-class="{'fa-check': isSetDisplayOrder('default')}"></i>
</a> </a>
</li> </li>
<li> <li>
<a class="pointer-cursor" ng-click="changeDisplayOrder('name:asc')"> <a class="pointer-cursor" ng-click="changeDisplayOrder('name:asc')">
<span translate>By File Name</span> <span translate>By File Name</span>
<i class="fa" ng-class="{'fa-check': isSetDisplayOrder('name')}"></i> <i class="fa fa-fw" ng-class="{'fa-check': isSetDisplayOrder('name')}"></i>
</a> </a>
</li> </li>
<li> <li>
<a class="pointer-cursor" ng-click="changeDisplayOrder('size:asc')"> <a class="pointer-cursor" ng-click="changeDisplayOrder('size:asc')">
<span translate>By File Size</span> <span translate>By File Size</span>
<i class="fa" ng-class="{'fa-check': isSetDisplayOrder('size')}"></i> <i class="fa fa-fw" ng-class="{'fa-check': isSetDisplayOrder('size')}"></i>
</a> </a>
</li> </li>
<li> <li>
<a class="pointer-cursor" ng-click="changeDisplayOrder('percent:desc')"> <a class="pointer-cursor" ng-click="changeDisplayOrder('percent:desc')">
<span translate>By Progress</span> <span translate>By Progress</span>
<i class="fa" ng-class="{'fa-check': isSetDisplayOrder('percent')}"></i> <i class="fa fa-fw" ng-class="{'fa-check': isSetDisplayOrder('percent')}"></i>
</a> </a>
</li> </li>
<li> <li>
<a class="pointer-cursor" ng-click="changeDisplayOrder('remain:asc')"> <a class="pointer-cursor" ng-click="changeDisplayOrder('remain:asc')">
<span translate>By Remain Time</span> <span translate>By Remain Time</span>
<i class="fa" ng-class="{'fa-check': isSetDisplayOrder('remain')}"></i> <i class="fa fa-fw" ng-class="{'fa-check': isSetDisplayOrder('remain')}"></i>
</a> </a>
</li> </li>
<li> <li>
<a class="pointer-cursor" ng-click="changeDisplayOrder('dspeed:desc')"> <a class="pointer-cursor" ng-click="changeDisplayOrder('dspeed:desc')">
<span translate>By Download Speed</span> <span translate>By Download Speed</span>
<i class="fa" ng-class="{'fa-check': isSetDisplayOrder('dspeed')}"></i> <i class="fa fa-fw" ng-class="{'fa-check': isSetDisplayOrder('dspeed')}"></i>
</a> </a>
</li> </li>
<li> <li>
<a class="pointer-cursor" ng-click="changeDisplayOrder('uspeed:desc')"> <a class="pointer-cursor" ng-click="changeDisplayOrder('uspeed:desc')">
<span translate>By Upload Speed</span> <span translate>By Upload Speed</span>
<i class="fa" ng-class="{'fa-check': isSetDisplayOrder('uspeed')}"></i> <i class="fa fa-fw" ng-class="{'fa-check': isSetDisplayOrder('uspeed')}"></i>
</a> </a>
</li> </li>
</ul> </ul>
</li> </li>
<li> <li>
<a tabindex="-1" class="pointer-cursor" title="{{'Select All' | translate}}" ng-click="selectAllTasks()"> <a tabindex="-1" class="pointer-cursor" title="{{'Select All' | translate}}" ng-click="selectAllTasks()">
<i class="fa fa-th-large"></i> <i class="fa fa-th-large fa-fw"></i>
<span translate>Select All</span> <span translate>Select All</span>
</a> </a>
</li> </li>
<li class="divider" ng-if="isSingleUrlTaskSelected()"></li> <li class="divider" ng-if="isSingleUrlTaskSelected()"></li>
<li ng-if="isSingleUrlTaskSelected()"> <li ng-if="isSingleUrlTaskSelected()">
<a tabindex="-1" class="pointer-cursor" title="{{'Copy Download Url' | translate}}" ng-click="copySelectedOneTaskDownloadLink()"> <a tabindex="-1" class="pointer-cursor" title="{{'Copy Download Url' | translate}}" ng-click="copySelectedOneTaskDownloadLink()">
<i class="fa fa-copy"></i> <i class="fa fa-copy fa-fw"></i>
<span translate>Copy Download Url</span> <span translate>Copy Download Url</span>
</a> </a>
</li> </li>

View file

@ -366,7 +366,7 @@
<ul class="dropdown-menu" role="menu"> <ul class="dropdown-menu" role="menu">
<li> <li>
<a id="mnu-overview-copy" tabindex="-1" class="mnu-copy pointer-cursor" title="{{'Copy' | translate}}" ng-click="copySelectedRowText()"> <a id="mnu-overview-copy" tabindex="-1" class="mnu-copy pointer-cursor" title="{{'Copy' | translate}}" ng-click="copySelectedRowText()">
<i class="fa fa-copy"></i> <i class="fa fa-copy fa-fw"></i>
<span translate>Copy</span> <span translate>Copy</span>
</a> </a>
</li> </li>