From: Brion Vibber Date: Thu, 20 Mar 2008 18:58:38 +0000 (+0000) Subject: Messed about in this horror myself a bit, think I got some issues worked out. :D X-Git-Tag: 1.31.0-rc.0~48922 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=345df67d0edcedaf4f80ad91172ac51ccec67d31;p=lhc%2Fweb%2Fwiklou.git Messed about in this horror myself a bit, think I got some issues worked out. :D * Arrows align with the text again -- by keeping them within a text line, 'middle' alignment works * Forced no-wrap whitespace to keep the line from breaking around the arrow or spacer image when the text line was long in Firefox --- diff --git a/includes/ChangesList.php b/includes/ChangesList.php index e7627dbc87..92d7a8a9cf 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -505,7 +505,7 @@ class EnhancedChangesList extends ChangesList { */ function recentChangesBlockGroup( $block ) { global $wgLang, $wgContLang, $wgRCShowChangedSize; - $r = ''; + $r = '
'; # Collate list of users $isnew = false; @@ -555,10 +555,10 @@ class EnhancedChangesList extends ChangesList { $toggleLink = "javascript:toggleVisibility('$rci','$rcm','$rcl')"; $tl = '' . $this->sideArrow() . ''; $tl .= ''; - $r .= ''; + $r .= ''; - } - /** * Add a set of spaces * @return string HTML
'.$tl.''.$tl.' '; # Main line - $r .= ''.$this->recentChangesFlags( $isnew, false, $unpatrolled, ' ', $bot ); + $r .= $this->recentChangesFlags( $isnew, false, $unpatrolled, ' ', $bot ); # Timestamp $r .= ' '.$block[0]->timestamp.' '; @@ -701,7 +701,7 @@ class EnhancedChangesList extends ChangesList { global $wgStylePath; $encUrl = htmlspecialchars( $wgStylePath . '/common/images/Arr_' . $dir . '.png' ); $encAlt = htmlspecialchars( $alt ); - return "\"$encAlt\""; + return "\"$encAlt\""; } /** @@ -735,15 +735,6 @@ class EnhancedChangesList extends ChangesList { return $this->arrow( '', ' ' ); } - /** - * Generate HTML for the equivalent of a spacer image for tables - * @return string HTML tag - * @access private - */ - function spacerColumn() { - return ' tag @@ -765,14 +756,11 @@ class EnhancedChangesList extends ChangesList { extract( $rcObj->mAttribs ); $curIdEq = 'curid='.$rc_cur_id; - $r = ''; + $r = '
'; - # spacerArrow() causes issues in FF - $r .= $this->spacerColumn(); - $r .= '
'; + $r .= '' . $this->spacerArrow() . ' '; # Flag and Timestamp - $r .= ''; if( $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) { $r .= '    '; // 4 flags -> 4 spaces } else {