Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 6f4ef0a

Browse files
committed
Make element web integration tests happy
1 parent 4713d0a commit 6f4ef0a

File tree

3 files changed

+28
-32
lines changed

3 files changed

+28
-32
lines changed

res/css/structures/_MatrixChat.scss

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,10 @@ limitations under the License.
1515
*/
1616

1717
.mx_MatrixChat_splash {
18-
position: relative;
19-
height: 100%;
20-
}
21-
22-
.mx_MatrixChat_splashButtons {
23-
text-align: center;
24-
width: 100%;
25-
position: absolute;
26-
bottom: 30px;
27-
}
28-
29-
.mx_MatrixChat_splashBackdrop {
3018
position: relative;
3119
&::before {
3220
/* Once we drop support for Firefox 102, remove this entire pseudo-element, move the background to the
33-
.mx_MatrixChat_splashBackdrop, and use backdrop-filter for the blur instead. */
21+
.mx_MatrixChat_splash, and use backdrop-filter for the blur instead. */
3422
content: "";
3523
display: block;
3624
position: absolute;
@@ -41,28 +29,28 @@ limitations under the License.
4129
gamma-incorrect gradient blending in browsers */
4230
background-image:
4331
radial-gradient(
44-
53.85% 66.75% at 87.55% 0%,
45-
hsla(250, 76%, 71%, 0.261) 0%,
46-
hsla(251, 83%, 79%, 0.1305) 50%,
47-
hsla(250, 100%, 88%, 0) 100%
32+
53.85% 66.75% at 87.55% 0%,
33+
hsla(250, 76%, 71%, 0.261) 0%,
34+
hsla(251, 83%, 79%, 0.1305) 50%,
35+
hsla(250, 100%, 88%, 0) 100%
4836
),
4937
radial-gradient(
50-
41.93% 41.93% at 0% 0%,
51-
hsla(222, 29%, 20%, 0.28) 0%,
52-
hsla(240, 17%, 53%, 0.14) 50%,
53-
hsla(250, 100%, 88%, 0) 100%
38+
41.93% 41.93% at 0% 0%,
39+
hsla(222, 29%, 20%, 0.28) 0%,
40+
hsla(240, 17%, 53%, 0.14) 50%,
41+
hsla(250, 100%, 88%, 0) 100%
5442
),
5543
radial-gradient(
56-
100% 100% at 0% 0%,
57-
hsla(250, 100%, 88%, 0.2436) 0%,
58-
hsla(318, 50%, 82%, 0.1218) 50%,
59-
hsla(0, 100%, 86%, 0) 100%
44+
100% 100% at 0% 0%,
45+
hsla(250, 100%, 88%, 0.2436) 0%,
46+
hsla(318, 50%, 82%, 0.1218) 50%,
47+
hsla(0, 100%, 86%, 0) 100%
6048
),
6149
radial-gradient(
62-
106.35% 96.26% at 100% 0%,
63-
hsla(250, 100%, 88%, 0.4) 0%,
64-
hsla(208, 67%, 85%, 0.2) 50%,
65-
hsla(167, 76%, 82%, 0) 100%
50+
106.35% 96.26% at 100% 0%,
51+
hsla(250, 100%, 88%, 0.4) 0%,
52+
hsla(208, 67%, 85%, 0.2) 50%,
53+
hsla(167, 76%, 82%, 0) 100%
6654
);
6755
/* Ugly hack to allow us to get rid of the color banding of the gradients */
6856
/* Can be replaced with backdrop-filter, replacing the hack below, after we stop supporting Firefox 102 */
@@ -72,6 +60,13 @@ limitations under the License.
7260
}
7361
}
7462

63+
.mx_MatrixChat_splashButtons {
64+
text-align: center;
65+
width: 100%;
66+
position: absolute;
67+
bottom: 30px;
68+
}
69+
7570
.mx_MatrixChat_wrapper {
7671
display: flex;
7772

src/components/structures/MatrixChat.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,6 +1236,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
12361236
this.screenAfterLogin.params,
12371237
);
12381238
this.screenAfterLogin = null;
1239+
MatrixClientPeg.userRegisteredWithinLastHours()
12391240
} else if (MatrixClientPeg.currentUserIsJustRegistered()) {
12401241
MatrixClientPeg.setJustRegisteredUserId(null);
12411242

@@ -1911,7 +1912,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
19111912

19121913
if (this.state.view === Views.LOADING) {
19131914
view = (
1914-
<div className="mx_MatrixChat_splash mx_MatrixChat_splashBackdrop">
1915+
<div className="mx_MatrixChat_splash">
19151916
<Spinner />
19161917
</div>
19171918
);
@@ -1961,7 +1962,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
19611962
</div>;
19621963
}
19631964
view = (
1964-
<div className="mx_MatrixChat_splash mx_MatrixChat_splashBackdrop">
1965+
<div className="mx_MatrixChat_splash">
19651966
{ errorBox }
19661967
<Spinner />
19671968
<div className="mx_MatrixChat_splashButtons">

src/components/views/dialogs/UseCaseSelection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ interface Props {
3333

3434
export default function UseCaseSelection({ onFinished }: Props) {
3535
return (
36-
<div className="mx_UseCaseSelection mx_MatrixChat_splashBackdrop">
36+
<div className="mx_UseCaseSelection mx_MatrixChat_splash">
3737
<div className="mx_UseCaseSelection_title mx_UseCaseSelection_fadeIn">
3838
<h1>{ _t("You’re in") }</h1>
3939
</div>

0 commit comments

Comments
 (0)