Hide images in search result descriptions and make the descriptions align better
This commit is contained in:
parent
62f8d23a91
commit
526f9c07b9
2 changed files with 7 additions and 2 deletions
|
@ -153,7 +153,7 @@ nav.navbar-default .navbar-nav>li>a.active {
|
|||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.header-bar-element .search-results li .description {
|
||||
.header-bar-element .search-results li .result-description {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-height: 24px;
|
||||
|
@ -161,6 +161,11 @@ nav.navbar-default .navbar-nav>li>a.active {
|
|||
display: inline-block;
|
||||
color: #aaa;
|
||||
vertical-align: middle;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.header-bar-element .search-results li .description img {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.header-bar-element .search-results li .score:before {
|
||||
|
|
|
@ -185,7 +185,7 @@
|
|||
<span ng-switch-when="repository">
|
||||
<span class="avatar" data="result.namespace.avatar" size="16"></span>
|
||||
<span class="result-name">{{ result.namespace.name }}/{{ result.name }}</span>
|
||||
<div class="description" ng-if="result.description">
|
||||
<div class="result-description" ng-if="result.description">
|
||||
<div class="description markdown-view" content="result.description"
|
||||
first-line-only="true" placeholder-needed="false"></div>
|
||||
</div>
|
||||
|
|
Reference in a new issue