From 774bb72c76054063c88291f9f55e4273ca88a5f6 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Sat, 10 Feb 2007 13:29:50 +0000 Subject: [PATCH] Better thread rendering git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@200 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- banana/spool.inc.php | 7 ++++--- css/style.css | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/banana/spool.inc.php b/banana/spool.inc.php index 07b2098..3d4eee6 100644 --- a/banana/spool.inc.php +++ b/banana/spool.inc.php @@ -434,8 +434,9 @@ class BananaSpool $res .= '\n"; $res .= '' . $this->formatDate($overview->date) . " \n"; - $res .= '' - . $_pfx_node .($hc ? ($_head ? $spfx_f : ($overview->parent_direct ? $spfx_s : $spfx_snd)) : $spfx_n); + $res .= '
' + . $_pfx_node .($hc ? ($_head ? $spfx_f : ($overview->parent_direct ? $spfx_s : $spfx_snd)) : $spfx_n) + . '
'; $subject = $overview->subject; if (function_exists('hook_formatDisplayHeader')) { list($subject, $link) = hook_formatDisplayHeader('subject', $subject, true); @@ -530,7 +531,7 @@ class BananaSpool for ($i = 0; $i < $pos ; $i++) { $ndx += $this->overview[$this->overview[$id_parent]->children[$i]]->desc; } - $ndx++; //noeud père + $ndx++; //noeud père $id_cur = $id_parent; } diff --git a/css/style.css b/css/style.css index f4fafeb..7654978 100644 --- a/css/style.css +++ b/css/style.css @@ -15,7 +15,7 @@ .banana .dsc { text-align: left; } /** THREAD VIEW **/ -.banana table.thread td { +.banana table.thread td, .banana table.thread tr { white-space: nowrap; height: 20px; vertical-align: middle; @@ -29,6 +29,7 @@ .banana table.thread .date { width: 15%; text-align: center; } .banana table.thread .subj { text-align: left; overflow: hidden; } +.banana table.thread .tree { float: left; height: 20px; margin: 0; padding: 0; } .banana table.thread .from { text-align: left; } .banana table.thread .cur { font-style: italic; } -- 2.1.4