Bartosz Dziewoński has uploaded a new change for review.
https://gerrit.wikimedia.org/r/254267
Change subject: SpecialWatchlist: Keep checkboxes and their labels together
......................................................................
SpecialWatchlist: Keep checkboxes and their labels together
Style added to shared.css, since I intend to reuse it elsewhere.
We have a lot of inline style="white-space: nowrap;" in some places.
Bug: T119055
Change-Id: If6cfcaac070cd51a93c078248b65020ae81d94f2
---
M includes/specials/SpecialWatchlist.php
M resources/src/mediawiki.legacy/shared.css
2 files changed, 11 insertions(+), 7 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/67/254267/1
diff --git a/includes/specials/SpecialWatchlist.php
b/includes/specials/SpecialWatchlist.php
index 52ff4cd..2feaa9e 100644
--- a/includes/specials/SpecialWatchlist.php
+++ b/includes/specials/SpecialWatchlist.php
@@ -480,21 +480,21 @@
'id' => 'namespace',
'class' => 'namespaceselector',
)
- ) . ' ';
- $form .= Xml::checkLabel(
+ ) . "\n";
+ $form .= '<span class="mw-input-with-label">' . Xml::checkLabel(
$this->msg( 'invert' )->text(),
'invert',
'nsinvert',
$opts['invert'],
array( 'title' => $this->msg( 'tooltip-invert'
)->text() )
- ) . ' ';
- $form .= Xml::checkLabel(
+ ) . "</span>\n";
+ $form .= '<span class="mw-input-with-label">' . Xml::checkLabel(
$this->msg( 'namespace_association' )->text(),
'associated',
'nsassociated',
$opts['associated'],
array( 'title' => $this->msg(
'tooltip-namespace_association' )->text() )
- ) . ' ';
+ ) . "</span>\n";
$form .= Xml::submitButton( $this->msg( 'allpagessubmit'
)->text() ) . "</p>\n";
foreach ( $hiddenFields as $key => $value ) {
$form .= Html::hidden( $key, $value ) . "\n";
@@ -598,12 +598,12 @@
protected function showHideCheck( $options, $message, $name, $value ) {
$options[$name] = 1 - (int)$value;
- return Xml::checkLabel(
+ return '<span class="mw-input-with-label">' . Xml::checkLabel(
$this->msg( $message, '' )->text(),
$name,
$name,
(int)$value
- );
+ ) . '</span>';
}
/**
diff --git a/resources/src/mediawiki.legacy/shared.css
b/resources/src/mediawiki.legacy/shared.css
index 07d9780..75a091c 100644
--- a/resources/src/mediawiki.legacy/shared.css
+++ b/resources/src/mediawiki.legacy/shared.css
@@ -191,6 +191,10 @@
margin-bottom: 1em;
}
+.mw-input-with-label {
+ white-space: nowrap;
+}
+
/**
* Image captions.
*
--
To view, visit https://gerrit.wikimedia.org/r/254267
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If6cfcaac070cd51a93c078248b65020ae81d94f2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits