Fix upgrade warning being chopped off
The flex box was behaving a bit strange, so we just wrap the content and change `height: 235px` to `max-height: 235px` to get scrollbars.
This commit is contained in:
parent
b6242dbad2
commit
0701d89bbe
2 changed files with 27 additions and 20 deletions
|
@ -15,17 +15,22 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.mx_RoomUpgradeWarningBar {
|
.mx_RoomUpgradeWarningBar {
|
||||||
|
max-height: 235px;
|
||||||
|
background-color: $preview-bar-bg-color;
|
||||||
|
padding-left: 20px;
|
||||||
|
padding-right: 20px;
|
||||||
|
overflow: scroll;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_RoomUpgradeWarningBar_wrapped {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
height: 235px;
|
|
||||||
background-color: $event-selected-color;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
display: flex;
|
|
||||||
background-color: $preview-bar-bg-color;
|
|
||||||
-webkit-align-items: center;
|
-webkit-align-items: center;
|
||||||
padding-left: 20px;
|
|
||||||
padding-right: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_RoomUpgradeWarningBar_header {
|
.mx_RoomUpgradeWarningBar_header {
|
||||||
|
|
|
@ -97,6 +97,7 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_RoomUpgradeWarningBar">
|
<div className="mx_RoomUpgradeWarningBar">
|
||||||
|
<div className="mx_RoomUpgradeWarningBar_wrapped">
|
||||||
<div className="mx_RoomUpgradeWarningBar_header">
|
<div className="mx_RoomUpgradeWarningBar_header">
|
||||||
{_t(
|
{_t(
|
||||||
"This room is running room version <roomVersion />, which this homeserver has " +
|
"This room is running room version <roomVersion />, which this homeserver has " +
|
||||||
|
@ -113,6 +114,7 @@ module.exports = React.createClass({
|
||||||
{_t("Only room administrators will see this warning")}
|
{_t("Only room administrators will see this warning")}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue