From bfbfd821b5da0322f63b196e9f47573d5523bd15 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Mon, 28 Jan 2013 16:15:06 +0100 Subject: [PATCH] Include a small preview in the search results --- frontend/style.css | 10 ++++++++++ frontend/templates/ui/index.tpl | 2 ++ 2 files changed, 12 insertions(+) diff --git a/frontend/style.css b/frontend/style.css index 8e087ed..92f8b69 100644 --- a/frontend/style.css +++ b/frontend/style.css @@ -142,3 +142,13 @@ a.title margin: 8px 16px; font-size: 19px; } + +.description +{ + margin-top: 4px; + font-size: 13px; + max-height: 15px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} diff --git a/frontend/templates/ui/index.tpl b/frontend/templates/ui/index.tpl index b2a5c35..823bbc1 100644 --- a/frontend/templates/ui/index.tpl +++ b/frontend/templates/ui/index.tpl @@ -43,6 +43,7 @@ var result_block = instantiateTemplate("result_topic"); result_block.children(".title").html(response[i].title); + result_block.children(".description").html(response[i].description); result_block.children(".providername").html(response[i].provider); result_block.appendTo(result_wrapper); @@ -145,6 +146,7 @@ Topic: +