Skip to content

Commit 6a11182

Browse files
authored
Merge pull request element-hq#3340 from vector-im/luke/css-rts-fix-welcome-pages-safari
Height:100% for welcome pages on Safari
2 parents 08852c6 + 9d96baa commit 6a11182

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/structures/_MatrixChat.scss‎

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,13 @@ limitations under the License.
9090
*/
9191
overflow-x: auto;
9292

93-
/* XXX: Hack: apparently if you try to nest a flex-box
94-
* within a non-flex-box within a flex-box, the height
95-
* of the innermost element gets miscalculated if the
96-
* parents are both auto. Height has to be auto here
97-
* for RoomView to correctly fit when the Toolbar is shown.
98-
* Ideally we'd launch straight into the RoomView at this
99-
* point, but instead we fudge it and make the middlePanel
100-
* flex itself.
101-
*/
10293
display: flex;
94+
95+
/* To fix https://github.com/vector-im/riot-web/issues/3298 where Safari
96+
needed height 100% all the way down to the HomePage. Height does not
97+
have to be auto, empirically.
98+
*/
99+
height: 100%;
103100
}
104101

105102
.mx_MatrixChat .mx_RightPanel {

‎src/skins/vector/css/vector-web/structures/_HomePage.scss‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ limitations under the License.
1818
.mx_HomePage {
1919
max-width: 960px;
2020
width: 100%;
21+
height: 100%;
22+
overflow-y: hidden;
2123
margin-left: auto;
2224
margin-right: auto;
2325
}

0 commit comments

Comments
 (0)