minor style fix

This commit is contained in:
Sam 2019-01-07 11:47:51 +01:00
parent 066a0d79c7
commit ea4d15acc0
6 changed files with 14 additions and 7 deletions

View File

@ -12,5 +12,5 @@
"display": "standalone", "display": "standalone",
"theme_color": "#000000", "theme_color": "#000000",
"background_color": "#ffffff", "background_color": "#ffffff",
"version": "0.1.1" "version": "0.1.1-beta"
} }

View File

@ -57,7 +57,7 @@ function FormWithGpx (props) {
gpxLimit} files max): gpxLimit} files max):
<input <input
accept=".gpx, .zip" accept=".gpx, .zip"
className="form-control input-lg" className="form-control form-control-file gpx-file"
disabled={loading} disabled={loading}
name="gpxFile" name="gpxFile"
required required
@ -95,7 +95,7 @@ function FormWithGpx (props) {
<input <input
type="submit" type="submit"
className="btn btn-secondary btn-lg btn-block" className="btn btn-secondary btn-lg btn-block"
onClick={() => history.go(-1)} onClick={() => history.push('/')}
value="Cancel" value="Cancel"
/> />
</div> </div>

View File

@ -123,7 +123,7 @@ function FormWithoutGpx (props) {
<input <input
type="submit" type="submit"
className="btn btn-secondary btn-lg btn-block" className="btn btn-secondary btn-lg btn-block"
onClick={() => history.go(-1)} onClick={() => history.push('/')}
value="Cancel" value="Cancel"
/> />
</form> </form>

View File

@ -228,6 +228,10 @@ label {
width: 100%; width: 100%;
} }
.gpx-file {
height: inherit;
}
.huge { .huge {
font-size: 25px; font-size: 25px;
} }
@ -302,6 +306,10 @@ label {
max-height: 45px; max-height: 45px;
} }
.timezone-custom-height {
height: calc(2.25rem + 14px);
}
.timezone-picker { .timezone-picker {
padding: 0; padding: 0;
} }

View File

@ -173,7 +173,6 @@ class ProfileEdit extends React.Component {
name="bio" name="bio"
className="form-control input-lg" className="form-control input-lg"
maxLength="200" maxLength="200"
type="text"
value={formData.bio} value={formData.bio}
onChange={e => this.handleFormChange(e)} onChange={e => this.handleFormChange(e)}
/> />
@ -183,7 +182,7 @@ class ProfileEdit extends React.Component {
<label> <label>
Timezone: Timezone:
<TimezonePicker <TimezonePicker
className="form-control" className="form-control timezone-custom-height"
onChange={tz => { onChange={tz => {
const e = { target: const e = { target:
{ {

View File

@ -2,7 +2,7 @@ import togeojson from '@mapbox/togeojson'
import { addDays, format, parse, startOfWeek, subHours } from 'date-fns' import { addDays, format, parse, startOfWeek, subHours } from 'date-fns'
import { DateTime } from 'luxon' import { DateTime } from 'luxon'
export const version = '0.1.1' // version stored in 'utils' for now export const version = '0.1.1-beta' // version stored in 'utils' for now
export const apiUrl = `${process.env.REACT_APP_API_URL}/api/` export const apiUrl = `${process.env.REACT_APP_API_URL}/api/`
export const thunderforestApiKey = `${ export const thunderforestApiKey = `${
process.env.REACT_APP_THUNDERFOREST_API_KEY process.env.REACT_APP_THUNDERFOREST_API_KEY