mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
Fix alignment for AclInformationButton
This commit is contained in:
parent
196219f106
commit
df338ac746
@ -24,17 +24,7 @@ let AclButtonList = React.createClass({
|
|||||||
React.PropTypes.element
|
React.PropTypes.element
|
||||||
])
|
])
|
||||||
},
|
},
|
||||||
getDefaultProps(){
|
|
||||||
return {
|
|
||||||
actionsLabelStyle: {
|
|
||||||
float: 'left',
|
|
||||||
fontSize: '11.2px'
|
|
||||||
},
|
|
||||||
buttonsStyle: {
|
|
||||||
marginLeft: '0.25cm'
|
|
||||||
}
|
|
||||||
};
|
|
||||||
},
|
|
||||||
getInitialState() {
|
getInitialState() {
|
||||||
return UserStore.getState();
|
return UserStore.getState();
|
||||||
},
|
},
|
||||||
@ -55,9 +45,6 @@ let AclButtonList = React.createClass({
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className={this.props.className}>
|
<div className={this.props.className}>
|
||||||
<span style={this.props.actionsLabelStyle}>
|
|
||||||
{getLangText('ACTIONS')}
|
|
||||||
</span>
|
|
||||||
<span style={this.props.buttonsStyle}>
|
<span style={this.props.buttonsStyle}>
|
||||||
<AclButton
|
<AclButton
|
||||||
availableAcls={this.props.availableAcls}
|
availableAcls={this.props.availableAcls}
|
||||||
|
@ -4,8 +4,12 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import classnames from 'classnames';
|
||||||
|
|
||||||
import DropdownButton from 'react-bootstrap/lib/Button';
|
import DropdownButton from 'react-bootstrap/lib/Button';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
let AclInformationButton = React.createClass({
|
let AclInformationButton = React.createClass({
|
||||||
getDefaultProps: function() {
|
getDefaultProps: function() {
|
||||||
let rows = [];
|
let rows = [];
|
||||||
@ -75,10 +79,6 @@ let AclInformationButton = React.createClass({
|
|||||||
},
|
},
|
||||||
dropdownListStyle: {
|
dropdownListStyle: {
|
||||||
textAlign: 'left',
|
textAlign: 'left',
|
||||||
border: '1px solid #02B6A3',
|
|
||||||
borderTop: 'none',
|
|
||||||
borderBottom: 'none',
|
|
||||||
float: 'right',
|
|
||||||
width: '80.8%'
|
width: '80.8%'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -101,15 +101,14 @@ let AclInformationButton = React.createClass({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
render: function () {
|
render: function () {
|
||||||
console.log('will start rendering');
|
|
||||||
return (
|
return (
|
||||||
<span>
|
<span>
|
||||||
<DropdownButton style={this.props.dropdownButtonStyle} className={'glyphicon glyphicon-question-sign' +
|
<DropdownButton
|
||||||
(this.state.isVisible ? ' clicked' : '')} onClick={this.show}>
|
style={this.props.dropdownButtonStyle}
|
||||||
{console.log(this.state.isVisible)}
|
className="glyphicon glyphicon-question-sign" onClick={this.show} />
|
||||||
</DropdownButton>
|
<div
|
||||||
<p></p>
|
style={this.props.dropdownListStyle}
|
||||||
<div style = {this.props.dropdownListStyle}>
|
className={classnames({'hidden': !this.state.isVisible})}>
|
||||||
{this.showInformation()}
|
{this.showInformation()}
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
|
@ -270,7 +270,7 @@ let EditionSummary = React.createClass({
|
|||||||
<Row>
|
<Row>
|
||||||
<Col md={11}>
|
<Col md={11}>
|
||||||
<AclButtonList
|
<AclButtonList
|
||||||
className="text-center ascribe-button-list"
|
className="ascribe-button-list ascribe-button-list-detail"
|
||||||
availableAcls={this.props.edition.acl}
|
availableAcls={this.props.edition.acl}
|
||||||
editions={[this.props.edition]}
|
editions={[this.props.edition]}
|
||||||
handleSuccess={this.props.handleSuccess}>
|
handleSuccess={this.props.handleSuccess}>
|
||||||
@ -300,6 +300,7 @@ let EditionSummary = React.createClass({
|
|||||||
label={getLangText('OWNER')}
|
label={getLangText('OWNER')}
|
||||||
value={ this.props.edition.owner } />
|
value={ this.props.edition.owner } />
|
||||||
{this.getStatus()}
|
{this.getStatus()}
|
||||||
|
<hr />
|
||||||
{this.getActions()}
|
{this.getActions()}
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -265,6 +265,11 @@ hr {
|
|||||||
|
|
||||||
.ascribe-detail-property-label {
|
.ascribe-detail-property-label {
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.ascribe-detail-property-label.col-bottom {
|
||||||
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ascribe-detail-property-value {
|
.ascribe-detail-property-value {
|
||||||
@ -369,6 +374,10 @@ hr {
|
|||||||
margin-top: 1px;
|
margin-top: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ascribe-button-list-detail {
|
||||||
|
margin-top:0;
|
||||||
|
}
|
||||||
|
|
||||||
.margin-left-2px{
|
.margin-left-2px{
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user