Added styling
This commit is contained in:
parent
f0bbed0c44
commit
8f40cd39fd
4 changed files with 44 additions and 9 deletions
|
@ -207,6 +207,7 @@
|
||||||
@import "./views/settings/_DevicesPanel.scss";
|
@import "./views/settings/_DevicesPanel.scss";
|
||||||
@import "./views/settings/_E2eAdvancedPanel.scss";
|
@import "./views/settings/_E2eAdvancedPanel.scss";
|
||||||
@import "./views/settings/_EmailAddresses.scss";
|
@import "./views/settings/_EmailAddresses.scss";
|
||||||
|
@import "./views/settings/_SpellCheckLanguages.scss";
|
||||||
@import "./views/settings/_IntegrationManager.scss";
|
@import "./views/settings/_IntegrationManager.scss";
|
||||||
@import "./views/settings/_Notifications.scss";
|
@import "./views/settings/_Notifications.scss";
|
||||||
@import "./views/settings/_PhoneNumbers.scss";
|
@import "./views/settings/_PhoneNumbers.scss";
|
||||||
|
|
36
res/css/views/settings/_SpellCheckLanguages.scss
Normal file
36
res/css/views/settings/_SpellCheckLanguages.scss
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
/*
|
||||||
|
Copyright 2019 New Vector Ltd
|
||||||
|
Copyright 2019 The Matrix.org Foundation C.I.C.
|
||||||
|
|
||||||
|
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_ExistingSpellCheckLanguage {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_ExistingSpellCheckLanguage_language {
|
||||||
|
flex: 1;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_GeneralUserSettingsTab_spellCheckLanguageInput {
|
||||||
|
margin-top: 1em;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx_SpellCheckLanguages {
|
||||||
|
@mixin mx_Settings_fullWidthField;
|
||||||
|
}
|
|
@ -43,8 +43,8 @@ export class ExistingSpellCheckLanguage extends React.Component<ExistingSpellChe
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className="mx_ExistingSpellCheckerLanguage">
|
<div className="mx_ExistingSpellCheckLanguage">
|
||||||
<span className="mx_ExistingSpellCheckerLanguage_language">{this.props.language}</span>
|
<span className="mx_ExistingSpellCheckLanguage_language">{this.props.language}</span>
|
||||||
<AccessibleButton onClick={this._onRemove} kind="danger_sm">
|
<AccessibleButton onClick={this._onRemove} kind="danger_sm">
|
||||||
{_t("Remove")}
|
{_t("Remove")}
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
|
@ -96,10 +96,9 @@ export default class SpellCheckLanguages extends React.Component<SpellCheckLangu
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_SpellCheckerLanguages">
|
<div className="mx_SpellCheckLanguages">
|
||||||
{existingSpellCheckLanguages}
|
{existingSpellCheckLanguages}
|
||||||
<form onSubmit={this._onAddClick} noValidate={true}
|
<form onSubmit={this._onAddClick} noValidate={true}>
|
||||||
className="mx_mx_SpellCheckerLanguages_new">
|
|
||||||
<LanguageDropdown className="mx_GeneralUserSettingsTab_spellCheckLanguageInput"
|
<LanguageDropdown className="mx_GeneralUserSettingsTab_spellCheckLanguageInput"
|
||||||
value={this.state.newLanguage}
|
value={this.state.newLanguage}
|
||||||
onOptionChange={this._onNewLanguageChange} />
|
onOptionChange={this._onNewLanguageChange} />
|
||||||
|
|
|
@ -315,8 +315,7 @@ export default class GeneralUserSettingsTab extends React.Component {
|
||||||
return (
|
return (
|
||||||
<div className="mx_SettingsTab_section">
|
<div className="mx_SettingsTab_section">
|
||||||
<span className="mx_SettingsTab_subheading">{_t("Spell checking")}</span>
|
<span className="mx_SettingsTab_subheading">{_t("Spell checking")}</span>
|
||||||
<SpellCheckSettings className="mx_GeneralUserSettingsTab_spellCheckLanguageInput"
|
<SpellCheckSettings languages={this.state.spellCheckLanguages}
|
||||||
languages={this.state.spellCheckLanguages}
|
|
||||||
onLanguagesChange={this._onSpellCheckLanguagesChange} />
|
onLanguagesChange={this._onSpellCheckLanguagesChange} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue