mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
change <details> appearance for local aliases
This commit is contained in:
parent
db10fcd2b7
commit
78fb95aa9e
@ -29,4 +29,12 @@ limitations under the License.
|
||||
|
||||
.mx_AliasSettings summary {
|
||||
cursor: pointer;
|
||||
color: $accent-color;
|
||||
font-weight: 600;
|
||||
list-style: none;
|
||||
|
||||
// list-style doesn't do it for webkit
|
||||
&::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
@ -98,6 +98,7 @@ export default class AliasSettings extends React.Component {
|
||||
canonicalAlias: null, // #canonical:domain.tld
|
||||
updatingCanonicalAlias: false,
|
||||
localAliasesLoading: false,
|
||||
detailsOpen: false,
|
||||
};
|
||||
|
||||
if (props.canonicalAliasEvent) {
|
||||
@ -268,6 +269,7 @@ export default class AliasSettings extends React.Component {
|
||||
this.loadLocalAliases();
|
||||
}
|
||||
}
|
||||
this.setState({detailsOpen: event.target.open});
|
||||
};
|
||||
|
||||
onCanonicalAliasChange = (event) => {
|
||||
@ -386,7 +388,7 @@ export default class AliasSettings extends React.Component {
|
||||
<span className='mx_SettingsTab_subheading'>{_t("Local Addresses")}</span>
|
||||
<p>{_t("Set addresses for this room so users can find this room through your homeserver (%(localDomain)s)", {localDomain})}</p>
|
||||
<details onToggle={this.onLocalAliasesToggled}>
|
||||
<summary>{_t('Local addresses (unmoderated content)')}</summary>
|
||||
<summary>{ this.state.detailsOpen ? _t('Show less') : _t("Show more")}</summary>
|
||||
{localAliasesList}
|
||||
</details>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user