Skip to content

Commit 8b6705c

Browse files
author
jonisaa
committed
#2 Fixed display on FileUpload layout, now going for the FileInfo components!
1 parent 380c6de commit 8b6705c

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

src/components/common/DropZone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export default class DropZone extends Component {
195195
borderWidth: 1,
196196
borderColor: '#bdbdbd',
197197
borderStyle: 'dashed',
198-
borderRadius: 1
198+
borderRadius: 2
199199
};
200200
activeStyle = {
201201
borderStyle: 'solid',

src/components/field/FileUpload.js

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,14 @@ export default class FileUpload extends Component {
4646
<div>
4747
<Row>
4848
<Col xs={2} md={2}>
49-
<div>
50-
<p>
51-
<b>Attachments</b>
52-
</p>
49+
<div style={{marginTop: "6px", color: "#616161"}}>
50+
<b>Attachment</b>
5351
</div>
5452
</Col>
5553
<Col xs={10} md={10}>
5654
<DropZone onDrop={this.onDrop}>
57-
<div>
58-
<p style={{ textAlign: "center" }}>
55+
<div style={{marginTop: "6px"}}>
56+
<p style={{textAlign: "center", color: "#616161"}}>
5957
<Glyphicon glyph="cloud-upload"/> Drop files to attach, or <a>browse</a>
6058
</p>
6159
</div>
@@ -70,11 +68,9 @@ export default class FileUpload extends Component {
7068
</DropZone>
7169
</Col>
7270
</Row>
73-
<div>
74-
<span>
75-
<GlyphButton type="submit" glyph="cloud-upload" text="Upload" bsSize="primary" onClick={this.onClick}/>
76-
</span>
77-
</div>
71+
<Col>
72+
<GlyphButton type="submit" glyph="cloud-upload" text="Upload" bsSize="primary" onClick={this.onClick}/>
73+
</Col>
7874
</div>
7975
);
8076
}

0 commit comments

Comments
 (0)