Extract language selector styles

This commit is contained in:
J. Ryan Stinnett 2019-01-23 09:11:37 -06:00
parent 36ebd91f07
commit f9793fa567
3 changed files with 29 additions and 15 deletions

View file

@ -0,0 +1,27 @@
/*
Copyright 2019 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
.mx_Auth_language {
margin-left: auto;
margin-right: auto;
min-width: 60%;
}
.mx_Auth_language_div {
display: flex;
margin-top: 12px;
margin-bottom: 12px;
}

View file

@ -233,16 +233,3 @@ limitations under the License.
margin: 3px; margin: 3px;
vertical-align: top; vertical-align: top;
} }
.mx_Login_language {
margin-left: auto;
margin-right: auto;
min-width: 60%;
}
.mx_Login_language_div {
display: flex;
margin-top: 12px;
margin-bottom: 12px;
}

View file

@ -32,7 +32,7 @@ export default function LanguageSelector() {
if (SdkConfig.get()['disable_login_language_selector']) return <div />; if (SdkConfig.get()['disable_login_language_selector']) return <div />;
const LanguageDropdown = sdk.getComponent('views.elements.LanguageDropdown'); const LanguageDropdown = sdk.getComponent('views.elements.LanguageDropdown');
return <div className="mx_Login_language_div"> return <div className="mx_Auth_language_div">
<LanguageDropdown onOptionChange={onChange} className="mx_Login_language" value={getCurrentLanguage()} /> <LanguageDropdown onOptionChange={onChange} className="mx_Auth_language" value={getCurrentLanguage()} />
</div>; </div>;
} }