Skip to content

Commit 54abaa7

Browse files
committed
Minor button style fix
1 parent e2a7cec commit 54abaa7

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

viscoll-api/config/mongoid.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ development:
99
# Provides the hosts the default client can connect to. Must be an array
1010
# of host:port pairs. (required)
1111
hosts:
12-
- localhost:27017
12+
- mongo:27017
1313
options:
1414
# Change the default write concern. (default = { w: 1 })
1515
# write:

viscoll-app/src/components/dashboard/ProjectStructure.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ const ProjectStructure = (props) => {
4545
const unconjoinLeafsList = !group.leaves? [] : Array.from(Array(group.leaves).keys());
4646
collationGroupsRows.push(
4747
<TableRow key={group.number}>
48-
<TableRowColumn aria-label="Group number APPLE" style={{paddingTop:"1em",textAlign: "center"}}>{group.number}</TableRowColumn>
49-
<TableRowColumn aria-label="Number of leaves APPLE" style={{textAlign: "center"}}>
48+
<TableRowColumn aria-label="Group number" style={{paddingTop:"1em",textAlign: "center"}}>{group.number}</TableRowColumn>
49+
<TableRowColumn aria-label="Number of leaves" style={{textAlign: "center"}}>
5050
<TextField
51-
aria-label={"Number of leaves in group APPLE " + group.number}
51+
aria-label={"Number of leaves in group" + group.number}
5252
id={group.number+"_number_of_leaves"}
5353
type="number"
5454
value={group.leaves}

viscoll-app/src/components/infoBox/GroupInfoBox.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,7 @@ export default class GroupInfoBox extends React.Component {
282282
}
283283

284284
toggleGroupDirection = () => {
285-
if(this.props.Groups[this.props.selectedGroups[0]].direction === "left-to-right"){
286-
this.singleSubmit("direction", "right-to-left")
287-
} else if(this.props.Groups[this.props.selectedGroups[0]].direction === "right-to-left"){
285+
if(this.props.Groups[this.props.selectedGroups[0]].direction === "right-to-left"){
288286
this.singleSubmit("direction", "left-to-right")
289287
} else {
290288
this.singleSubmit("direction", "right-to-left")
@@ -503,11 +501,11 @@ export default class GroupInfoBox extends React.Component {
503501

504502
let flipBtn = <RaisedButton
505503
primary
506-
label={"Flip View Direction"}
504+
label={"Flip Direction"}
507505
onClick={() => {if(this.props.selectedGroups.length > 1){this.batchFlip()}else{this.toggleGroupDirection()}}}
508506
tabIndex={this.props.tabIndex}
509507
{...btnBase()}
510-
style={(this.props.selectedGroups && this.props.selectedGroups.length === 1) ? {...btnBase().style, width: "48%", float:"left", marginRight:"2%", marginTop:"2%"} : {width:"100%", float:"left", marginRight:"2%", marginTop:"2%", marginBottom:"2%"}}
508+
style={(this.props.selectedGroups && this.props.selectedGroups.length === 1) ? {...btnBase().style, width: "48%", float:"left", marginRight:"2%", marginTop:"2%", marginBottom: "2%"} : {width:"100%", float:"left", marginRight:"2%", marginTop:"2%", marginBottom:"2%"}}
511509
/>
512510
let deleteBtn =
513511
<DeleteConfirmationDialog

0 commit comments

Comments
 (0)