Phoenix303 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/182140

Change subject: Removed obselete HTML attributes
......................................................................

Removed obselete HTML attributes

I have removed deprecated HTML attributes and used CSS instead.

Bug: T74519
Change-Id: I71d6c8487c176a033a00a0213f60e7e7e2ab19d6
---
M lqt.css
M pages/TalkpageView.php
2 files changed, 7 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LiquidThreads 
refs/changes/40/182140/1

diff --git a/lqt.css b/lqt.css
index 248404b..9e4d765 100644
--- a/lqt.css
+++ b/lqt.css
@@ -482,6 +482,11 @@
        margin: 30px auto 10px;
 }
 
+.TalkpagePager_nav td{
+       vertical-align: top;
+       text-align: center;
+}
+
 .lqt-drag-confirm label {
        margin-right: 20px;
 }
diff --git a/pages/TalkpageView.php b/pages/TalkpageView.php
index a0fe8ef..8c2fd70 100644
--- a/pages/TalkpageView.php
+++ b/pages/TalkpageView.php
@@ -568,9 +568,9 @@
 
                $navClass = htmlspecialchars( $this->getNavClass() );
                $s = "<table class=\"$navClass\" align=\"center\" 
cellpadding=\"3\"><tr>\n";
-               $cellAttrs = 'valign="top" align="center" width="' . 100 / 
count( $links ) . '%"';
+               $cellAttrs = 'width: ' . 100 / count( $links ) . '%';
                foreach ( $labels as $type => $label ) {
-                       $s .= "<td $cellAttrs>{$links[$type]}</td>\n";
+                       $s .= "<td style='$cellAttrs'>{$links[$type]}</td>\n";
                }
                $s .= "</tr></table>\n";
                return $s;

-- 
To view, visit https://gerrit.wikimedia.org/r/182140
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I71d6c8487c176a033a00a0213f60e7e7e2ab19d6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LiquidThreads
Gerrit-Branch: master
Gerrit-Owner: Phoenix303 <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to