Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit d843ca3

Browse files
committed
fix styles
1 parent 302e47c commit d843ca3

File tree

2 files changed

+33
-26
lines changed

2 files changed

+33
-26
lines changed

app/views/note/inputSupport/NoteInputSupport.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ export default class NoteInputSupport extends React.Component {
3131
style={Styles.inputElementsStyle}>
3232
<View>
3333
<SvgUri
34-
width='10'
35-
height='10'
34+
width='17'
35+
height='17'
3636
source={headIcon}
37+
style={Styles.supportImage}
3738
/>
38-
<Text style={Styles.supportSub}>Head</Text>
3939
</View>
4040
</TouchableHighlight>
4141
<TouchableHighlight
@@ -45,11 +45,11 @@ export default class NoteInputSupport extends React.Component {
4545
style={Styles.inputElementsStyle}>
4646
<View>
4747
<SvgUri
48-
width='10'
49-
height='10'
48+
width='17'
49+
height='17'
5050
source={listIcon}
51+
style={Styles.supportImage}
5152
/>
52-
<Text style={Styles.supportSub}>List</Text>
5353
</View>
5454
</TouchableHighlight>
5555
<TouchableHighlight
@@ -59,11 +59,11 @@ export default class NoteInputSupport extends React.Component {
5959
style={Styles.inputElementsStyle}>
6060
<View>
6161
<SvgUri
62-
width='10'
63-
height='10'
62+
width='17'
63+
height='17'
6464
source={codeIcon}
65+
style={Styles.supportImage}
6566
/>
66-
<Text style={Styles.supportSub}>Code</Text>
6767
</View>
6868
</TouchableHighlight>
6969
<TouchableHighlight
@@ -73,11 +73,11 @@ export default class NoteInputSupport extends React.Component {
7373
style={Styles.inputElementsStyle}>
7474
<View>
7575
<SvgUri
76-
width='10'
77-
height='10'
76+
width='17'
77+
height='17'
7878
source={boldIcon}
79+
style={Styles.supportImage}
7980
/>
80-
<Text style={Styles.supportSub}>Bold</Text>
8181
</View>
8282
</TouchableHighlight>
8383
<TouchableHighlight
@@ -87,11 +87,11 @@ export default class NoteInputSupport extends React.Component {
8787
style={Styles.inputElementsStyle}>
8888
<View>
8989
<SvgUri
90-
width='10'
91-
height='10'
90+
width='17'
91+
height='17'
9292
source={italicIcon}
93+
style={Styles.supportImage}
9394
/>
94-
<Text style={Styles.supportSub}>italic</Text>
9595
</View>
9696
</TouchableHighlight>
9797
<TouchableHighlight
@@ -101,11 +101,11 @@ export default class NoteInputSupport extends React.Component {
101101
style={Styles.inputElementsStyle}>
102102
<View>
103103
<SvgUri
104-
width='10'
105-
height='10'
104+
width='17'
105+
height='17'
106106
source={quoteIcon}
107+
style={Styles.supportImage}
107108
/>
108-
<Text style={Styles.supportSub}>Quote</Text>
109109
</View>
110110
</TouchableHighlight>
111111
<TouchableHighlight
@@ -115,23 +115,23 @@ export default class NoteInputSupport extends React.Component {
115115
style={Styles.inputElementsStyle}>
116116
<View>
117117
<SvgUri
118-
width='10'
119-
height='10'
118+
width='17'
119+
height='17'
120120
source={checkboxIcon}
121+
style={Styles.supportImage}
121122
/>
122-
<Text style={Styles.supportSub}>TaskList</Text>
123123
</View>
124124
</TouchableHighlight>
125125
<TouchableHighlight
126126
onPress={this.props.pasteContent.bind(this)}
127127
style={Styles.inputElementsStyle}>
128128
<View>
129129
<SvgUri
130-
width='10'
131-
height='10'
130+
width='17'
131+
height='17'
132132
source={pasteIcon}
133+
style={Styles.supportImage}
133134
/>
134-
<Text style={Styles.supportSub}>Paste</Text>
135135
</View>
136136
</TouchableHighlight>
137137
</ScrollView>

app/views/note/inputSupport/NoteInputSupportStyles.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,20 @@ export default Styles = {
1010
paddingRight: 10,
1111
paddingTop: 1,
1212
paddingBottom: 1,
13-
marginLeft: 2,
14-
marginRight: 2,
13+
marginLeft: 4,
14+
marginRight: 4,
1515
marginTop: 4,
1616
marginBottom: 4,
1717
borderRadius: 3,
1818
borderWidth: 0,
1919
backgroundColor: 'rgba(255, 255, 255, 1)',
20+
width: 50,
21+
height: 30
22+
},
23+
supportImage: {
24+
alignItems: 'center',
25+
justifyContent: 'center',
26+
height: '100%'
2027
},
2128
supportMain: {
2229
fontSize: 12,

0 commit comments

Comments
 (0)