Wrap long words in reference preview popups

Bug: T266859
Change-Id: I874d60246a0337577c0f411d0d24f237c1ceebf2
This commit is contained in:
Thiemo Kreuz 2020-10-30 16:05:41 +01:00
parent 789cedc168
commit c6ea149d34
3 changed files with 7 additions and 3 deletions

View file

@ -67,7 +67,7 @@
"bundlesize": [
{
"path": "resources/dist/index.js",
"maxSize": "13.82kB"
"maxSize": "13.6kB"
}
]
}

View file

@ -38,6 +38,10 @@
padding-right: @popupPadding;
}
.mw-parser-output {
overflow-wrap: break-word;
}
// Remove the default fade-out effect set by popup.less
&:after {
display: none;

View file

@ -112,8 +112,8 @@ module.exports = ( env, argv ) => ( {
// Minified uncompressed size limits for chunks / assets and entrypoints. Keep these numbers
// up-to-date and rounded to the nearest 10th of a kibibyte so that code sizing costs are
// well understood. Related to bundlesize minified, gzipped compressed file size tests.
maxAssetSize: 42.6 * 1024,
maxEntrypointSize: 42.6 * 1024,
maxAssetSize: 41.4 * 1024,
maxEntrypointSize: 41.4 * 1024,
// The default filter excludes map files but we rename ours.
assetFilter: ( filename ) => !filename.endsWith( srcMapExt )