Adamw has uploaded a new change for review.
https://gerrit.wikimedia.org/r/55810
Change subject: nowrap dates for better readability
......................................................................
nowrap dates for better readability
Change-Id: I18854e8734f91efa59bb23a8191316a23929fc3e
---
M modules/ext.centralNotice.interface/centralnotice.css
M special/SpecialCentralNotice.php
2 files changed, 5 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralNotice
refs/changes/10/55810/1
diff --git a/modules/ext.centralNotice.interface/centralnotice.css
b/modules/ext.centralNotice.interface/centralnotice.css
index 7a65f2f..6231381 100644
--- a/modules/ext.centralNotice.interface/centralnotice.css
+++ b/modules/ext.centralNotice.interface/centralnotice.css
@@ -37,6 +37,9 @@
#preferences table#envpicker td {
white-space:nowrap;
}
+#preferences td.date {
+ white-space:nowrap;
+}
#preferences div.cn-buttons {
padding:1em;
}
diff --git a/special/SpecialCentralNotice.php b/special/SpecialCentralNotice.php
index 241ca92..3bbc040 100644
--- a/special/SpecialCentralNotice.php
+++ b/special/SpecialCentralNotice.php
@@ -451,12 +451,12 @@
$end_min = substr( $end_timestamp, 10, 2 );
// Start
- $rowCells .= Html::rawElement( 'td', array(),
+ $rowCells .= Html::rawElement( 'td', array(
'class' => 'date' ),
"{$start_year}/{$start_month}/{$start_day} {$start_hour}:{$start_min}"
);
// End
- $rowCells .= Html::rawElement( 'td', array(),
+ $rowCells .= Html::rawElement( 'td', array(
'class' => 'date' ),
"{$end_year}/{$end_month}/{$end_day}
{$end_hour}:{$end_min}"
);
--
To view, visit https://gerrit.wikimedia.org/r/55810
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I18854e8734f91efa59bb23a8191316a23929fc3e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralNotice
Gerrit-Branch: master
Gerrit-Owner: Adamw <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits