Commit 5992a0fcb8ac4ce6caabc62a0a3aacf8c20855c2
1 parent
2681fa15
Exists in
master
and in
28 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,7 +4,7 @@ | ||
| 4 | <span class="search-field-label"><%= _("Description") %></span> | 4 | <span class="search-field-label"><%= _("Description") %></span> |
| 5 | <% if !article.body.blank? %> | 5 | <% if !article.body.blank? %> |
| 6 | <% body_stripped = strip_tags(article.body.to_s) %> | 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 | <% else %> | 8 | <% else %> |
| 9 | <span class="search-field-none"><%= _('None') %></span> | 9 | <span class="search-field-none"><%= _('None') %></span> |
| 10 | <% end %> | 10 | <% end %> |
public/stylesheets/search.css
| @@ -211,6 +211,11 @@ li.article-item .search-result-title { | @@ -211,6 +211,11 @@ li.article-item .search-result-title { | ||
| 211 | .search-article-description { | 211 | .search-article-description { |
| 212 | clear: both; | 212 | clear: both; |
| 213 | } | 213 | } |
| 214 | +.search-article-body { | ||
| 215 | + float: right; | ||
| 216 | + width: 80%; | ||
| 217 | + margin-bottom: 7px; | ||
| 218 | +} | ||
| 214 | .search-field-none { | 219 | .search-field-none { |
| 215 | color: #ccc; | 220 | color: #ccc; |
| 216 | } | 221 | } |