Skip to content

Commit e85bc77

Browse files
committed
fix(css): fix results/form styling for iPhone 5s
fixes ibi-group/trimet-mod-otp#108
1 parent 96a4499 commit e85bc77

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

lib/components/form/form.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
.otp .settings-preview.compressed {
6262
height: 95px;
6363
text-align: center;
64-
padding: 0px 15px;
64+
padding: 0px;
6565
}
6666

6767
.otp .settings-preview .selected-modes .some-selected-label {

lib/components/mobile/results-screen.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component } from 'react'
22
import PropTypes from 'prop-types'
33
import { connect } from 'react-redux'
4-
import { Button } from 'react-bootstrap'
4+
import { Button, Col, Row } from 'react-bootstrap'
55

66
import DefaultMap from '../map/default-map'
77
import ErrorMessage from '../form/error-message'
@@ -68,22 +68,22 @@ class MobileResultsScreen extends Component {
6868
)
6969

7070
const locationsSummary = (
71-
<div className='locations-summary' style={{ padding: '4px 8px' }}>
72-
<div style={{ float: 'right' }}>
73-
<Button
74-
className='edit-search-button'
75-
onClick={this._editSearchClicked}
76-
>Edit</Button>
77-
</div>
78-
<div style={{ fontSize: '15px', lineHeight: '19px' }}>
71+
<Row xs={12} className='locations-summary' style={{ padding: '4px 8px' }}>
72+
<Col xs={8} sm={11} style={{ fontSize: '1.1em', lineHeight: '1.2em' }}>
7973
<div className='location'>
8074
<i className='fa fa-map-marker' /> { query.from ? query.from.name : '' }
8175
</div>
8276
<div className='location' style={{ marginTop: '2px' }}>
8377
<i className='fa fa-dot-circle-o' /> { query.to ? query.to.name : '' }
8478
</div>
85-
</div>
86-
</div>
79+
</Col>
80+
<Col xs={4} sm={1}>
81+
<Button
82+
className='edit-search-button'
83+
onClick={this._editSearchClicked}
84+
>Edit</Button>
85+
</Col>
86+
</Row>
8787
)
8888

8989
if (error) {

0 commit comments

Comments
 (0)