Tweak language selector to match design
This commit is contained in:
parent
f9793fa567
commit
05254f0e82
7 changed files with 16 additions and 10 deletions
|
@ -23,6 +23,7 @@
|
||||||
@import "./structures/_UploadBar.scss";
|
@import "./structures/_UploadBar.scss";
|
||||||
@import "./structures/_UserSettings.scss";
|
@import "./structures/_UserSettings.scss";
|
||||||
@import "./structures/_ViewSource.scss";
|
@import "./structures/_ViewSource.scss";
|
||||||
|
@import "./structures/auth/_LanguageSelector.scss";
|
||||||
@import "./structures/auth/_Login.scss";
|
@import "./structures/auth/_Login.scss";
|
||||||
@import "./views/auth/_AuthBody.scss";
|
@import "./views/auth/_AuthBody.scss";
|
||||||
@import "./views/auth/_AuthButtons.scss";
|
@import "./views/auth/_AuthButtons.scss";
|
||||||
|
|
|
@ -15,13 +15,12 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.mx_Auth_language {
|
.mx_Auth_language {
|
||||||
margin-left: auto;
|
width: 100%;
|
||||||
margin-right: auto;
|
|
||||||
min-width: 60%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_Auth_language_div {
|
.mx_Auth_language .mx_Dropdown_input {
|
||||||
display: flex;
|
border: none;
|
||||||
margin-top: 12px;
|
font-size: 14px;
|
||||||
margin-bottom: 12px;
|
font-weight: 600;
|
||||||
|
color: $authpage-lang-color;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,8 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.mx_AuthHeader {
|
.mx_AuthHeader {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
width: 206px;
|
width: 206px;
|
||||||
padding: 25px 50px;
|
padding: 25px 50px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
|
@ -16,6 +16,7 @@ limitations under the License.
|
||||||
|
|
||||||
.mx_AuthHeaderLogo {
|
.mx_AuthHeaderLogo {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_AuthHeaderLogo img {
|
.mx_AuthHeaderLogo img {
|
||||||
|
|
|
@ -216,6 +216,7 @@ $memberstatus-placeholder-color: $roomtile-name-color;
|
||||||
$authpage-bg-color: #2e3649;
|
$authpage-bg-color: #2e3649;
|
||||||
$authpage-modal-bg-color: rgba(255, 255, 255, 0.59);
|
$authpage-modal-bg-color: rgba(255, 255, 255, 0.59);
|
||||||
$authpage-body-bg-color: #ffffff;
|
$authpage-body-bg-color: #ffffff;
|
||||||
|
$authpage-lang-color: #4e5054;
|
||||||
|
|
||||||
/*** form elements ***/
|
/*** form elements ***/
|
||||||
|
|
||||||
|
|
|
@ -212,6 +212,7 @@ $memberstatus-placeholder-color: $roomtile-name-color;
|
||||||
$authpage-bg-color: #2e3649;
|
$authpage-bg-color: #2e3649;
|
||||||
$authpage-modal-bg-color: rgba(255, 255, 255, 0.59);
|
$authpage-modal-bg-color: rgba(255, 255, 255, 0.59);
|
||||||
$authpage-body-bg-color: #ffffff;
|
$authpage-body-bg-color: #ffffff;
|
||||||
|
$authpage-lang-color: #4e5054;
|
||||||
|
|
||||||
// ***** Mixins! *****
|
// ***** Mixins! *****
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,8 @@ 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_Auth_language_div">
|
return <LanguageDropdown className="mx_Auth_language"
|
||||||
<LanguageDropdown onOptionChange={onChange} className="mx_Auth_language" value={getCurrentLanguage()} />
|
onOptionChange={onChange}
|
||||||
</div>;
|
value={getCurrentLanguage()}
|
||||||
|
/>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue