Show mf-section-0 in preview

Bug: T318758
Change-Id: I12039696bfe0f06e21b28ed32fdfc23442033805
This commit is contained in:
Ed Sanders 2022-09-28 14:38:20 +01:00
parent 56725cb098
commit df96154538

View file

@ -685,13 +685,16 @@ h1, h2, h3, h4, h5, h6 {
// The button will disable all DT features byt remove feature CSS classes. // The button will disable all DT features byt remove feature CSS classes.
// stylelint-disable-next-line selector-class-pattern // stylelint-disable-next-line selector-class-pattern
.skin-minerva.ns-talk.ext-discussiontools-replytool-enabled { .skin-minerva.ns-talk.ext-discussiontools-replytool-enabled {
.mf-section-0 > *:not( .ext-discussiontools-emptystate ) { // .mw-body-content selector prevents this applying to content in the preview (T318758)
display: none; .mw-body-content > .mw-parser-output > .mf-section-0 {
} > *:not( .ext-discussiontools-emptystate ) {
display: none;
}
.mf-section-0 > .ext-discussiontools-emptystate { > .ext-discussiontools-emptystate {
border-top: 0; border-top: 0;
margin-top: 0; margin-top: 0;
}
} }
.ext-discussiontools-init-readAsWikiPage { .ext-discussiontools-init-readAsWikiPage {