From dc8fc8c9e4acf3790ec5cbe47c4acc795848b16c Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Fri, 5 Sep 2014 02:19:00 -0700 Subject: [PATCH] UX: move "show more" in search to bottom of results --- .../discourse/templates/search.js.handlebars | 16 +++++++++------- app/assets/stylesheets/common/base/header.scss | 3 +++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/search.js.handlebars b/app/assets/javascripts/discourse/templates/search.js.handlebars index d0ce0aae97c..06d12126c94 100644 --- a/app/assets/javascripts/discourse/templates/search.js.handlebars +++ b/app/assets/javascripts/discourse/templates/search.js.handlebars @@ -14,16 +14,18 @@ +
+ {{#if resultType.more}} + {{i18n show_more}} + {{else}} + {{#if showCancelFilter}} + + {{/if}} + {{/if}} +
{{/each}} {{else}}
diff --git a/app/assets/stylesheets/common/base/header.scss b/app/assets/stylesheets/common/base/header.scss index cc677bc2d5f..6ad79736051 100644 --- a/app/assets/stylesheets/common/base/header.scss +++ b/app/assets/stylesheets/common/base/header.scss @@ -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;