Commit 5992a0fcb8ac4ce6caabc62a0a3aacf8c20855c2
1 parent
2681fa15
Exists in
master
and in
29 other branches
Fix description size on content search
Showing
2 changed files
with
6 additions
and
1 deletions
Show diff stats
app/views/search/_article_description.rhtml
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | <span class="search-field-label"><%= _("Description") %></span> |
5 | 5 | <% if !article.body.blank? %> |
6 | 6 | <% body_stripped = strip_tags(article.body.to_s) %> |
7 | - <span class="article-item-body"><%= excerpt(body_stripped, body_stripped.first(3), 200) %></span> | |
7 | + <span class="search-article-body"><%= excerpt(body_stripped, body_stripped.first(3), 200) %></span> | |
8 | 8 | <% else %> |
9 | 9 | <span class="search-field-none"><%= _('None') %></span> |
10 | 10 | <% end %> | ... | ... |
public/stylesheets/search.css
... | ... | @@ -211,6 +211,11 @@ li.article-item .search-result-title { |
211 | 211 | .search-article-description { |
212 | 212 | clear: both; |
213 | 213 | } |
214 | +.search-article-body { | |
215 | + float: right; | |
216 | + width: 80%; | |
217 | + margin-bottom: 7px; | |
218 | +} | |
214 | 219 | .search-field-none { |
215 | 220 | color: #ccc; |
216 | 221 | } | ... | ... |