From: Andrew Dolgov Date: Fri, 29 Mar 2013 19:04:27 +0000 (+0400) Subject: fix invisible active headline in 3pane mode X-Git-Tag: 1.7.6~147 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a7c0e150b62c65d4941e6af2780ca89966dce35c;p=tt-rss.git fix invisible active headline in 3pane mode --- diff --git a/classes/feeds.php b/classes/feeds.php index ddf48c4c..2b00b848 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -462,7 +462,7 @@ class Feeds extends Handler_Protected { $reply['content'] .= "
"; - $reply['content'] .= "" . truncate_string($line["title"], 200); diff --git a/js/viewfeed.js b/js/viewfeed.js index 3adfe5a9..7abfef09 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -243,7 +243,6 @@ function render_article(article) { function showArticleInHeadlines(id) { try { - selectArticles("none"); var crow = $("RROW-" + id); @@ -253,6 +252,7 @@ function showArticleInHeadlines(id) { var article_is_unread = crow.hasClassName("Unread"); crow.removeClassName("Unread"); + crow.addClassName("active"); selectArticles('none'); @@ -337,6 +337,9 @@ function article_callback2(transport, id) { function view(id) { try { + var oldrow = $("RROW-" + getActiveArticleId()); + if (oldrow) oldrow.removeClassName("active"); + var crow = $("RROW-" + id); if (!crow) return; diff --git a/tt-rss.css b/tt-rss.css index c975e415..bdfeee3a 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -193,33 +193,23 @@ a:hover { color : #909090; } -.hl.even { - border-width : 0px 0px 1px 0px; +.hl { + border-width : 0px 1px 1px 0px; border-style : solid; border-color : #c0c0c0; - background : #f0f0f0; - border-collapse : collapse; } -.hl.odd { - border-width : 0px 0px 1px 0px; - border-style : solid; - border-color : #c0c0c0; - border-collapse : collapse; +.hl.active { + background : #ecf4ff ! important; } -.hl.even.Unread { +.hl.even { background : #f0f0f0; - border-width : 0px 0px 1px 0px; - border-style : solid; - border-color : #c0c0c0; border-collapse : collapse; } -.hl.odd.Unread { - border-width : 0px 0px 1px 0px; - border-style : solid; - border-color : #c0c0c0; +.hl.odd { + background : white; } div.filterTestHolder { @@ -1008,3 +998,12 @@ select.attachments { max-width : 120px; } +div.hl.active { + border-color : #88b0f0; +} + +div.hl.active a.title { + color : #4684ff; + font-weight : bold; +} +