set max height for rpc select dropdown list

This commit is contained in:
MaysWind 2018-08-14 21:27:31 +08:00
parent 2831666ce0
commit 766761d2f0
2 changed files with 6 additions and 1 deletions

View file

@ -55,7 +55,7 @@
<span class="dropdown-toggle" data-toggle="dropdown"> <span class="dropdown-toggle" data-toggle="dropdown">
<span class="logo-lg-title">AriaNg</span><i class="fa fa-caret-right fa-right-bottom fa-rotate-45 fa-half" aria-hidden="true"></i> <span class="logo-lg-title">AriaNg</span><i class="fa fa-caret-right fa-right-bottom fa-rotate-45 fa-half" aria-hidden="true"></i>
</span> </span>
<ul class="dropdown-menu dropdown-menu-right" role="menu"> <ul class="dropdown-menu dropdown-menu-right rpcselect-dropdown" role="menu">
<li ng-repeat="setting in rpcSettings" ng-class="{'active': setting.isDefault}"> <li ng-repeat="setting in rpcSettings" ng-class="{'active': setting.isDefault}">
<a class="pointer-cursor" ng-click="switchRpcSetting(setting)"> <a class="pointer-cursor" ng-click="switchRpcSetting(setting)">
<span ng-bind="(setting.rpcAlias ? setting.rpcAlias : setting.rpcHost + ':' + setting.rpcPort)">RPC</span> <span ng-bind="(setting.rpcAlias ? setting.rpcAlias : setting.rpcHost + ':' + setting.rpcPort)">RPC</span>

View file

@ -79,6 +79,11 @@ td {
cursor: pointer; cursor: pointer;
} }
.main-header .rpcselect-dropdown {
max-height: 200px;
overflow-x: hidden;
}
.main-sidebar { .main-sidebar {
z-index: 1010; z-index: 1010;
} }