From 5992a0fcb8ac4ce6caabc62a0a3aacf8c20855c2 Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Wed, 21 Sep 2011 11:51:56 -0300 Subject: [PATCH] Fix description size on content search --- app/views/search/_article_description.rhtml | 2 +- public/stylesheets/search.css | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/search/_article_description.rhtml b/app/views/search/_article_description.rhtml index dca7cbd..e0655d2 100644 --- a/app/views/search/_article_description.rhtml +++ b/app/views/search/_article_description.rhtml @@ -4,7 +4,7 @@ <%= _("Description") %> <% if !article.body.blank? %> <% body_stripped = strip_tags(article.body.to_s) %> - <%= excerpt(body_stripped, body_stripped.first(3), 200) %> + <%= excerpt(body_stripped, body_stripped.first(3), 200) %> <% else %> <%= _('None') %> <% end %> diff --git a/public/stylesheets/search.css b/public/stylesheets/search.css index c3a808f..c36bfaf 100644 --- a/public/stylesheets/search.css +++ b/public/stylesheets/search.css @@ -211,6 +211,11 @@ li.article-item .search-result-title { .search-article-description { clear: both; } +.search-article-body { + float: right; + width: 80%; + margin-bottom: 7px; +} .search-field-none { color: #ccc; } -- libgit2 0.21.2