Wrap inputs in fieldsets in Space visibility settings (#7350)
* use fieldset in space settings > visibility Signed-off-by: Kerry Archibald <kerrya@element.io> * add basic tests for space setttings visibility Signed-off-by: Kerry Archibald <kerrya@element.io> * i18n Signed-off-by: Kerry Archibald <kerrya@element.io> * fix toggle button placement Signed-off-by: Kerry Archibald <kerrya@element.io> * i18n Signed-off-by: Kerry Archibald <kerrya@element.io> * update settings separator color to quinary Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
parent
92ee02fe02
commit
b1066a5699
10 changed files with 431 additions and 54 deletions
|
@ -384,6 +384,7 @@ export default class AliasSettings extends React.Component<IProps, IState> {
|
|||
return (
|
||||
<div className='mx_AliasSettings'>
|
||||
<SettingsFieldset
|
||||
data-test-id='published-address-fieldset'
|
||||
legend={_t("Published Addresses")}
|
||||
description={<>
|
||||
{ isSpaceRoom
|
||||
|
@ -429,7 +430,9 @@ export default class AliasSettings extends React.Component<IProps, IState> {
|
|||
placeholder={_t('New published address (e.g. #alias:server)')}
|
||||
/>
|
||||
</SettingsFieldset>
|
||||
<SettingsFieldset legend={_t("Local Addresses")}
|
||||
<SettingsFieldset
|
||||
data-test-id='local-address-fieldset'
|
||||
legend={_t("Local Addresses")}
|
||||
description={isSpaceRoom
|
||||
? _t("Set addresses for this space so users can find this space " +
|
||||
"through your homeserver (%(localDomain)s)", { localDomain })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue