Merge "Set width of preview to match reading"

This commit is contained in:
jenkins-bot 2022-10-19 14:28:37 +00:00 committed by Gerrit Code Review
commit fd259ed3c2
2 changed files with 12 additions and 1 deletions

View file

@ -492,7 +492,7 @@
"exclude": {
"mainpage": false,
"querystring": {
"action": "(history|edit)",
"action": "(history|edit|submit)",
"diff": ".+"
},
"namespaces": [

View file

@ -1,7 +1,18 @@
@import '../resources/common/variables.less';
// Reset the font-size for the whole body, but then re-override this below
// to ensure the preview width (which is based on font-size) is correct.
.vector-body {
font-size: @font-size-reset;
}
// Even if the editing form is max-width, the preview should be constrained.
.skin-vector-disable-max-width #wikiPreview {
max-width: @max-width-content-container;
margin: auto;
// Change font-size for the actual preview content.
.mw-parser-output {
font-size: @font-size-base;
}
}