mirror of
https://github.com/ascribe/onion.git
synced 2024-11-14 09:05:08 +01:00
Finalizing behavior of AclInformation
This commit is contained in:
parent
cd3c8b8f6e
commit
3bf70628c1
@ -43,6 +43,12 @@ let AclButtonList = React.createClass({
|
||||
window.dispatchEvent(new Event('resize'));
|
||||
},
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
if(prevProps.availableAcls && prevProps.availableAcls !== this.props.availableAcls) {
|
||||
window.dispatchEvent(new Event('resize'));
|
||||
}
|
||||
},
|
||||
|
||||
componentWillUnmount() {
|
||||
UserStore.unlisten(this.onChange);
|
||||
|
||||
|
@ -48,7 +48,7 @@ let AclInformation = React.createClass({
|
||||
{replaceSubstringAtIndex(info.slice(2), 's ', ' ')}
|
||||
</span>
|
||||
<span className="example">
|
||||
{example}
|
||||
{' ' + example}
|
||||
</span>
|
||||
</p>
|
||||
);
|
||||
@ -119,7 +119,7 @@ let AclInformation = React.createClass({
|
||||
{this.getButton()}
|
||||
<div
|
||||
style={{
|
||||
width: aclInformationSize > 300 ? aclInformationSize : 400,
|
||||
width: verbs.length > 1 && aclInformationSize > 300 ? aclInformationSize : verbs.length === 1 ? null : '100%',
|
||||
marginLeft: verbs.length === 1 ? '.25em' : null
|
||||
}}
|
||||
className={classnames({'acl-information-dropdown-list': true, 'hidden': aim === 'button' && !isVisible})}>
|
||||
|
@ -613,7 +613,7 @@ $modal-header-border-color: #e5e5e5 !default;
|
||||
$modal-footer-border-color: $modal-header-border-color !default;
|
||||
|
||||
$modal-lg: 900px !default;
|
||||
$modal-md: 600px !default;
|
||||
$modal-md: 500px !default;
|
||||
$modal-sm: 300px !default;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user