Skip to content

Commit e883dd6

Browse files
committed
修复Dialog样式,英文版有覆盖现象
1 parent 3a758b4 commit e883dd6

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎src/components/Dialog/styles.js‎

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default StyleSheet.create({
2424
backgroundColor: color.content_white,
2525
borderRadius: 12,
2626
// backgroundColor: 'transparent',
27-
paddingVertical: scaleSize(10),
27+
// paddingVertical: scaleSize(10),
2828
},
2929
opacityView: {
3030
position: 'absolute',
@@ -39,22 +39,23 @@ export default StyleSheet.create({
3939
color: color.themeText2,
4040
},
4141
info: {
42-
marginTop: scaleSize(20),
42+
// marginTop: scaleSize(20),
4343
fontSize: size.fontSize.fontSizeXl,
4444
backgroundColor: 'transparent',
4545
marginVertical: scaleSize(20),
46+
marginHorizontal: scaleSize(20),
4647
textAlign: 'center',
4748
color: color.themeText2,
4849
},
4950
childrenContainer: {
5051
flex: 1,
51-
marginBottom: scaleSize(50),
52+
// marginBottom: scaleSize(80),
5253
},
5354
btns: {
54-
position: 'absolute',
55+
// position: 'absolute',
5556
width: '100%',
56-
left: 0,
57-
bottom: 0,
57+
// left: 0,
58+
// bottom: 0,
5859
height: scaleSize(80),
5960
flexDirection: 'row',
6061
justifyContent: 'space-between',
@@ -63,11 +64,11 @@ export default StyleSheet.create({
6364
borderTopColor: '#EEEEEE',
6465
},
6566
oneBtn: {
66-
position: 'absolute',
67+
// position: 'absolute',
6768
height: scaleSize(80),
6869
width: '100%',
69-
left: 0,
70-
bottom: 0,
70+
// left: 0,
71+
// bottom: 0,
7172
flexDirection: 'row',
7273
justifyContent: 'center',
7374
alignItems: 'center',

‎src/containers/tabs/Home/components/ProtocolDialog.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export default class ProtocolDialog extends Component {
110110
</View>
111111
<MTBtn
112112
title={this.props.language === 'EN' ? '中文' : 'EN'}
113-
textStyle={{ color: color.blue1, paddingBottom: scaleSize(10) }}
113+
textStyle={{ color: color.blue1 }}
114114
onPress={() => {
115115
if (this.props.language === 'EN') {
116116
this.props.setLanguage('CN')
@@ -179,7 +179,6 @@ const styles = StyleSheet.create({
179179
checkBox: {
180180
height: scaleSize(40),
181181
width: scaleSize(40),
182-
paddingBottom: scaleSize(10),
183182
},
184183
tipBtn: {
185184
height: scaleSize(40),
@@ -190,6 +189,6 @@ const styles = StyleSheet.create({
190189
fontSize: setSpText(16),
191190
textAlign: 'center',
192191
backgroundColor: 'transparent',
193-
paddingBottom: scaleSize(10),
192+
// paddingBottom: scaleSize(10),
194193
},
195194
})

‎src/containers/workspace/pages/mapView/MapView.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2313,7 +2313,7 @@ export default class MapView extends React.Component {
23132313
info={getLanguage(this.props.language).Prompt.DELETE_OBJECT}
23142314
// {'是否要删除该对象吗?\n(删除后将不可恢复)'}
23152315
confirmAction={this.removeObject}
2316-
style={styles.dialogStyle}
2316+
// style={styles.dialogStyle}
23172317
opacityStyle={styles.dialogStyle}
23182318
confirmBtnTitle={getLanguage(this.props.language).Prompt.DELETE}
23192319
cancelBtnTitle={getLanguage(this.props.language).Prompt.CANCEL}

0 commit comments

Comments
 (0)