1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-14 17:15:08 +01:00

Finalizing behavior of AclInformation

This commit is contained in:
Tim Daubenschütz 2015-10-23 11:24:26 +02:00
parent cd3c8b8f6e
commit 3bf70628c1
3 changed files with 9 additions and 3 deletions

View File

@ -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);

View File

@ -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})}>

View File

@ -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;