mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 07:43:47 +00:00
Max-width layout: Make page container fill viewport if content height is small
This will help mitigate the sidebar overflowing the page container (related to T257518). Note that this does not prevent the overflow from happening as the sidebar can still be longer than the viewport, but it should reduce the number of times it can happen. Bug: T257518 Change-Id: Id7138b4d4459242772bee8e11dc7edeaf76b3ca0
This commit is contained in:
parent
56dbfd9a46
commit
acf42aa48f
|
@ -107,6 +107,9 @@
|
|||
.mw-page-container {
|
||||
min-width: @min-width-page-container;
|
||||
max-width: @max-width-page-container;
|
||||
// Fill the viewport even if the content height is small. This also helps
|
||||
// mitigate a long sidebar overflowing the page container (T257518).
|
||||
min-height: 100%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
padding: 0 @padding-horizontal-page-container;
|
||||
|
|
Loading…
Reference in a new issue