'mw-ui-input-inline',
'mw-autocomplete-user', // used by mediawiki.userSuggest
),
- ) + ( $this->opts['target'] ? array() : array( 'autofocus' ) )
+ ) + (
+ // Only autofocus if target hasn't been specified or in non-newbies mode
+ ( $this->opts['contribs'] === 'newbie' || $this->opts['target'] )
+ ? array() : array( 'autofocus' => true )
+ )
);
+
$targetSelection = Html::rawElement(
'td',
array( 'colspan' => 2 ),
) . ' ' .
Html::rawElement(
'span',
- array( 'style' => 'white-space: nowrap' ),
+ array( 'class' => 'mw-input-with-label' ),
Xml::checkLabel(
$this->msg( 'invert' )->text(),
'nsInvert',
)
) . ' '
) .
- Html::rawElement( 'span', array( 'style' => 'white-space: nowrap' ),
+ Html::rawElement( 'span', array( 'class' => 'mw-input-with-label' ),
Xml::checkLabel(
$this->msg( 'namespace_association' )->text(),
'associated',
if ( $this->getUser()->isAllowed( 'deletedhistory' ) ) {
$deletedOnlyCheck = Html::rawElement(
'span',
- array( 'style' => 'white-space: nowrap' ),
+ array( 'class' => 'mw-input-with-label' ),
Xml::checkLabel(
$this->msg( 'history-show-deleted' )->text(),
'deletedOnly',
$checkLabelTopOnly = Html::rawElement(
'span',
- array( 'style' => 'white-space: nowrap' ),
+ array( 'class' => 'mw-input-with-label' ),
Xml::checkLabel(
$this->msg( 'sp-contributions-toponly' )->text(),
'topOnly',
);
$checkLabelNewOnly = Html::rawElement(
'span',
- array( 'style' => 'white-space: nowrap' ),
+ array( 'class' => 'mw-input-with-label' ),
Xml::checkLabel(
$this->msg( 'sp-contributions-newonly' )->text(),
'newOnly',