diff --git a/includes/CommentFormatter.php b/includes/CommentFormatter.php index 10b2d8f13..533980985 100644 --- a/includes/CommentFormatter.php +++ b/includes/CommentFormatter.php @@ -82,7 +82,7 @@ class CommentFormatter { $summary = Html::element( 'span', [ 'class' => 'ext-discussiontools-init-sidebar-meta' - ], wfMessage( 'parentheses', $commentCount )->inLanguage( $lang )->text() ); + ], $commentCount ); // This also shows up in API action=parse&prop=sections output. $item['html-summary'] = $summary; diff --git a/modules/dt.init.less b/modules/dt.init.less index c35b32747..ad5fbc247 100644 --- a/modules/dt.init.less +++ b/modules/dt.init.less @@ -325,19 +325,13 @@ h1, h2, h3, h4, h5, h6 { display: block; } - // stylelint-disable-next-line selector-class-pattern - .sidebar-toc .sidebar-toc-text { - display: inline; - } - // stylelint-disable-next-line selector-class-pattern .sidebar-toc .sidebar-toc-list-item { - padding-top: 4px; - padding-bottom: 4px; + margin: 8px 0; } .ext-discussiontools-init-sidebar-meta { - display: inline; + display: block; color: #666; white-space: nowrap; font-size: 0.875em;