mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 11:19:51 +00:00
UX: move "show more" in search to bottom of results
This commit is contained in:
parent
950e5c9965
commit
dc8fc8c9e4
@ -14,16 +14,18 @@
|
||||
<ul>
|
||||
<li class='heading row'>
|
||||
{{resultType.name}}
|
||||
{{#if resultType.more}}
|
||||
<a href='#' class='filter' {{action moreOfType resultType.type bubbles=false}}>{{i18n show_more}}</a>
|
||||
{{else}}
|
||||
{{#if showCancelFilter}}
|
||||
<a href='#' class='filter' {{action cancelType bubbles=false}}><i class='fa fa-times-circle'></i></a>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</li>
|
||||
{{view 'search-results-type' type=resultType.type displayType=resultType.displayType content=resultType.results}}
|
||||
</ul>
|
||||
<div class='no-results'>
|
||||
{{#if resultType.more}}
|
||||
<a href='#' class='filter' {{action moreOfType resultType.type bubbles=false}}>{{i18n show_more}}</a>
|
||||
{{else}}
|
||||
{{#if showCancelFilter}}
|
||||
<a href='#' class='filter' {{action cancelType bubbles=false}}><i class='fa fa-times-circle'></i></a>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/each}}
|
||||
{{else}}
|
||||
<div class='no-results'>
|
||||
|
@ -286,8 +286,11 @@
|
||||
size: 18px;
|
||||
};
|
||||
}
|
||||
// I am ghetto using this to display "Show More".. be warned
|
||||
.no-results {
|
||||
padding: 5px;
|
||||
height: 12px;
|
||||
width:60%;
|
||||
}
|
||||
.filter {
|
||||
float: right;
|
||||
|
Loading…
x
Reference in New Issue
Block a user