]> git.wh0rd.org - tt-rss.git/commitdiff
use css table layout in cdmHeader (fixes #383)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 7 Nov 2011 12:19:43 +0000 (16:19 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 7 Nov 2011 12:19:43 +0000 (16:19 +0400)
cdm.css
functions.php

diff --git a/cdm.css b/cdm.css
index 0b4e2f01c22a548883e3788bc59df3c01bef9ba1..0e9b0468e359715bce7ad482d42f89aaa0fb7d91 100644 (file)
--- a/cdm.css
+++ b/cdm.css
@@ -3,9 +3,22 @@ div.cdmHeader img, div.cdmHeader input, div.cdmFooter img {
 }
 
 div.cdmHeader {
+       display : table;
+}
+
+div.cdmHeader > * {
+       display : table-cell;
        padding : 5px;
 }
 
+div.cdmHeader > div {
+       white-space : nowrap;
+}
+
+div.cdmHeader > span {
+       width : 100%;
+}
+
 div.cdmHeader span.updated {
        color : gray;
        font-weight : normal;
index 4c4f768769859ab90d52f80ff7c8e4577b5ce019..3e591ea41eaae5ae3e8a63b1898220ddc3d51e32 100644 (file)
 
                                        $reply['content'] .= "<div class=\"cdmHeader\">";
 
-                                       $reply['content'] .= "<div style='float : right'>";
-                                       $reply['content'] .= "<span class='updated'>$updated_fmt</span>";
-                                       $reply['content'] .= "$score_pic";
-
-                                       if (!get_pref($link, "VFEED_GROUP_BY_FEED") && $line["feed_title"]) {
-                                               $reply['content'] .= "<span style=\"cursor : pointer\"
-                                                       title=\"".htmlspecialchars($line["feed_title"])."\"
-                                                       onclick=\"viewfeed($feed_id)\">$feed_icon_img</span>";
-                                       }
-                                       $reply['content'] .= "<div class=\"updPic\">$update_pic</div>";
-
-                                       $reply['content'] .= "</div>";
+                                       $reply['content'] .= "<div>";
 
                                        $reply['content'] .= "<input type=\"checkbox\" onclick=\"toggleSelectRowById(this,
                                                        'RROW-$id')\" id=\"RCHK-$id\"/>";
                                        $reply['content'] .= "$marked_pic";
                                        $reply['content'] .= "$published_pic";
 
+                                       $reply['content'] .= "</div>";
+
                                        $reply['content'] .= "<span id=\"RTITLE-$id\"
                                                onclick=\"return cdmClicked(event, $id);\"
                                                class=\"titleWrap$hlc_suffix\">
 
                                        $reply['content'] .= "</span>";
 
+                                       $reply['content'] .= "<div>";
+                                       $reply['content'] .= "<span class='updated'>$updated_fmt</span>";
+                                       $reply['content'] .= "$score_pic";
+
+                                       if (!get_pref($link, "VFEED_GROUP_BY_FEED") && $line["feed_title"]) {
+                                               $reply['content'] .= "<span style=\"cursor : pointer\"
+                                                       title=\"".htmlspecialchars($line["feed_title"])."\"
+                                                       onclick=\"viewfeed($feed_id)\">$feed_icon_img</span>";
+                                       }
+                                       $reply['content'] .= "<div class=\"updPic\">$update_pic</div>";
+                                       $reply['content'] .= "</div>";
+
                                        $reply['content'] .= "</div>";
 
                                        $reply['content'] .= "<div class=\"cdmContent\" $content_hidden