Skip to content

Commit a816f49

Browse files
authored
Merge pull request matrix-org#4656 from TitanNano/9814
Add some media queries to improve UI on mobile (matrix-org#3991)
2 parents 3bdf3be + af1c2f9 commit a816f49

File tree

6 files changed

+47
-0
lines changed

6 files changed

+47
-0
lines changed

res/css/views/auth/_AuthBody.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,12 @@ limitations under the License.
146146
.mx_AuthBody_spinner {
147147
margin: 1em 0;
148148
}
149+
150+
@media only screen and (max-width: 480px) {
151+
.mx_AuthBody {
152+
border-radius: 4px;
153+
width: auto;
154+
max-width: 500px;
155+
padding: 10px;
156+
}
157+
}

res/css/views/auth/_AuthHeader.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@ limitations under the License.
2121
padding: 25px 40px;
2222
box-sizing: border-box;
2323
}
24+
25+
@media only screen and (max-width: 480px) {
26+
.mx_AuthHeader {
27+
display: none;
28+
}
29+
}

res/css/views/auth/_AuthHeaderLogo.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,9 @@ limitations under the License.
2323
.mx_AuthHeaderLogo img {
2424
width: 100%;
2525
}
26+
27+
@media only screen and (max-width: 480px) {
28+
.mx_AuthHeaderLogo {
29+
display: none;
30+
}
31+
}

res/css/views/auth/_AuthPage.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,9 @@ limitations under the License.
2929
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.33);
3030
background-color: $authpage-modal-bg-color;
3131
}
32+
33+
@media only screen and (max-width: 480px) {
34+
.mx_AuthPage_modal {
35+
margin-top: 0;
36+
}
37+
}

res/css/views/rooms/_EventTile.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,3 +572,14 @@ limitations under the License.
572572
margin-left: 1em;
573573
}
574574
}
575+
576+
@media only screen and (max-width: 480px) {
577+
.mx_EventTile_line, .mx_EventTile_reply {
578+
padding-left: 0;
579+
margin-right: 0;
580+
}
581+
.mx_EventTile_content {
582+
margin-top: 10px;
583+
margin-right: 0;
584+
}
585+
}

res/css/views/rooms/_RoomHeader.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,3 +267,12 @@ limitations under the License.
267267
.mx_RoomHeader_pinsIndicatorUnread {
268268
background-color: $pinned-unread-color;
269269
}
270+
271+
@media only screen and (max-width: 480px) {
272+
.mx_RoomHeader_wrapper {
273+
padding: 0;
274+
}
275+
.mx_RoomHeader {
276+
overflow: hidden;
277+
}
278+
}

0 commit comments

Comments
 (0)