diff --git a/less/header.less b/less/header.less index f9cbbd5..1bcc828 100644 --- a/less/header.less +++ b/less/header.less @@ -252,17 +252,6 @@ margin-left: -30px; } } - .quick-search-results { - max-width: 400px; - max-height: 500px; - overflow-x: hidden; - overflow-y: auto; - a { - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden - } - } } .breadcrumb { diff --git a/less/search.less b/less/search.less index eb648ed..e836bc0 100644 --- a/less/search.less +++ b/less/search.less @@ -29,3 +29,29 @@ } } +.quick-search-results { + max-width: 400px; + max-height: 500px; + overflow-x: hidden; + overflow-y: auto; + a { + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden + } + .quick-search-title { + font-weight: 600; + } + .post-info { + font-size: 12px; + .fa-stack { + font-size: 10px; + border-radius: 50%; + } + } + + .snippet { + word-break: break-word; + white-space: normal; + } +} diff --git a/templates/partials/quick-search-results.tpl b/templates/partials/quick-search-results.tpl index ddff9ad..5556923 100644 --- a/templates/partials/quick-search-results.tpl +++ b/templates/partials/quick-search-results.tpl @@ -6,15 +6,23 @@ {posts.user.icon:text} - {posts.topic.title} - - + {posts.topic.title} +
+

+ {posts.snippet} +

+ + {posts.category.name} • + + + +
  • - [[search:see-more-results]] + [[search:see-more-results, {matchCount}]]
  • \ No newline at end of file