diff --git a/res/css/views/settings/_SpellCheckLanguages.pcss b/res/css/views/settings/_SpellCheckLanguages.pcss index 0b5e140bd2..4c88ae8d26 100644 --- a/res/css/views/settings/_SpellCheckLanguages.pcss +++ b/res/css/views/settings/_SpellCheckLanguages.pcss @@ -17,7 +17,6 @@ limitations under the License. .mx_ExistingSpellCheckLanguage { display: flex; align-items: center; - margin-bottom: 5px; } .mx_ExistingSpellCheckLanguage_language { @@ -26,10 +25,5 @@ limitations under the License. } .mx_GeneralUserSettingsTab_spellCheckLanguageInput { - margin-top: 1em; - margin-bottom: 1em; -} - -.mx_SpellCheckLanguages { - margin-inline-end: var(--SettingsTab_fullWidthField-margin-inline-end); + margin-bottom: $spacing-8; } diff --git a/res/css/views/settings/tabs/user/_GeneralUserSettingsTab.pcss b/res/css/views/settings/tabs/user/_GeneralUserSettingsTab.pcss index eed53cb6b9..7b8ff43f62 100644 --- a/res/css/views/settings/tabs/user/_GeneralUserSettingsTab.pcss +++ b/res/css/views/settings/tabs/user/_GeneralUserSettingsTab.pcss @@ -41,8 +41,7 @@ limitations under the License. .mx_GeneralUserSettingsTab_section--account .mx_EmailAddresses, .mx_GeneralUserSettingsTab_section--account .mx_PhoneNumbers, -.mx_GeneralUserSettingsTab_section--discovery .mx_GeneralUserSettingsTab_section--discovery_existing, -.mx_GeneralUserSettingsTab_section_languageInput { +.mx_GeneralUserSettingsTab_section--discovery .mx_GeneralUserSettingsTab_section--discovery_existing { margin-inline-end: var(--SettingsTab_fullWidthField-margin-inline-end); } @@ -62,10 +61,6 @@ limitations under the License. margin-left: 5px; } -.mx_GeneralUserSettingsTab_section--spellcheck .mx_ToggleSwitch { - float: right; -} - .mx_GeneralUserSettingsTab_heading_warningIcon { vertical-align: middle; } diff --git a/src/components/views/settings/SpellCheckSettings.tsx b/src/components/views/settings/SpellCheckSettings.tsx index a27c26d799..eaa83c1e2d 100644 --- a/src/components/views/settings/SpellCheckSettings.tsx +++ b/src/components/views/settings/SpellCheckSettings.tsx @@ -98,7 +98,7 @@ export default class SpellCheckLanguages extends React.Component + <> {existingSpellCheckLanguages}
{addButton} - + ); } } diff --git a/src/components/views/settings/tabs/user/GeneralUserSettingsTab.tsx b/src/components/views/settings/tabs/user/GeneralUserSettingsTab.tsx index 5b4ea04d1a..7d7e855688 100644 --- a/src/components/views/settings/tabs/user/GeneralUserSettingsTab.tsx +++ b/src/components/views/settings/tabs/user/GeneralUserSettingsTab.tsx @@ -57,6 +57,7 @@ import { IS_MAC } from "../../../../../Keyboard"; import SettingsTab from "../SettingsTab"; import { SettingsSection } from "../../shared/SettingsSection"; import SettingsSubsection from "../../shared/SettingsSubsection"; +import { SettingsSubsectionHeading } from "../../shared/SettingsSubsectionHeading"; interface IProps { closeSettingsFn: () => void; @@ -417,31 +418,31 @@ export default class GeneralUserSettingsTab extends React.Component - {_t("Language and region")} + - + ); } private renderSpellCheckSection(): JSX.Element { + const heading = ( + + + + ); return ( -
- - {_t("Spell check")} - - + {this.state.spellCheckEnabled && !IS_MAC && ( )} -
+ ); }