Skip to content

Commit a74ac33

Browse files
committed
Hide sign in / create account for logged in users
1 parent 31260be commit a74ac33

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

res/home.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,18 @@
100100
margin: 28px 0;
101101
}
102102

103+
.mx_ButtonRow_guest {
104+
display: none;
105+
}
106+
107+
/* mx_HomePage_guest is set on the `HomePage` component for guest users */
108+
.mx_HomePage_guest .mx_ButtonRow_guest {
109+
display: -webkit-box;
110+
display: -webkit-flex;
111+
display: -ms-flexbox;
112+
display: flex;
113+
}
114+
103115
.mx_buttonheadline {
104116
margin-bottom: 14px;
105117
}
@@ -162,7 +174,7 @@
162174
<h1 class="mx_Header2">_t("Welcome to Riot.im")</h1>
163175
<h4 class="mx_Header22">_t("Decentralised, encrypted chat &amp; collaboration powered by [matrix]")</h4>
164176
<div class="mx_Well">
165-
<div class="mx_ButtonRow">
177+
<div class="mx_ButtonRow mx_ButtonRow_guest">
166178
<a href="#/login" class="mx_ButtonParent mx_ButtonSignIn mx_Button_iconSignIn">
167179
<div class="mx_buttonlabel">_t("Sign In")</div>
168180
</a>

0 commit comments

Comments
 (0)