From bc20cb9fad53bc8575a6463d24d9f44f2883c482 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 11 Aug 2015 15:29:27 +0300 Subject: [PATCH] move attachment dropdown to cdmFooter, use table styles for cdmFooter --- classes/feeds.php | 13 +++++++------ css/cdm.css | 14 ++++++++++---- css/tt-rss.css | 6 +++++- 3 files changed, 22 insertions(+), 11 deletions(-) diff --git a/classes/feeds.php b/classes/feeds.php index afc72095..fec542ef 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -699,21 +699,18 @@ class Feeds extends Handler_Protected { $reply['content'] .= ""; - $always_display_enclosures = sql_bool_to_bool($line["always_display_enclosures"]); - $reply['content'] .= ""; $reply['content'] .= "
"; - $reply['content'] .= format_article_enclosures($id, $always_display_enclosures, $line["content"], sql_bool_to_bool($line["hide_images"])); - $reply['content'] .= "
"; - foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_ARTICLE_LEFT_BUTTON) as $p) { $reply['content'] .= $p->hook_article_left_button($line); } $tags_str = format_tags_string($tags, $id); + $reply['content'] .= ""; + $reply['content'] .= "Tags $tags_str "; + $reply['content'] .= ""; + $reply['content'] .= "
"; // $reply['content'] .= "$marked_pic"; // $reply['content'] .= "$published_pic"; + $always_display_enclosures = sql_bool_to_bool($line["always_display_enclosures"]); + $reply['content'] .= format_article_enclosures($id, $always_display_enclosures, $line["content"], sql_bool_to_bool($line["hide_images"])); + foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_ARTICLE_BUTTON) as $p) { $reply['content'] .= $p->hook_article_button($line); } diff --git a/css/cdm.css b/css/cdm.css index ed9bedea..515bbb3f 100644 --- a/css/cdm.css +++ b/css/cdm.css @@ -2,7 +2,7 @@ div.cdmHeader img, div.cdmHeader input, div.cdmFooter img { vertical-align : middle; } -div.cdmHeader { +div.cdmHeader, div.cdmFooter { display : table; } @@ -11,11 +11,16 @@ div.cdmHeader > * { padding : 5px; } -div.cdmHeader > div { +div.cdmFooter > * { + display : table-cell; + vertical-align : middle; +} + +div.cdmHeader > div, div.cdmFooter > div { white-space : nowrap; } -div.cdmHeader > span { +div.cdmHeader > span, div.cdmFooter > span.left { width : 100%; } @@ -74,7 +79,8 @@ div.cdmContentInner h4 { } div.cdmFooter { - padding : 5px; + height : 30px; + padding-left : 5px; font-weight : normal; color : #555; clear : both; diff --git a/css/tt-rss.css b/css/tt-rss.css index 789319cc..57b914e1 100644 --- a/css/tt-rss.css +++ b/css/tt-rss.css @@ -1114,6 +1114,10 @@ body#ttrssMain #feedTree .dijitTreeRow img.dijitTreeExpandoLeaf { outline: none; } +.dijitDropDownButton.attachments .dijitButtonText { + font-size : 12px; +} + .dijitDropDownButton.attachments { - margin-bottom : 10px; + display : inline-block; } \ No newline at end of file -- 2.39.5