Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yihong0618 committed Apr 26, 2023
1 parent 13b9c2d commit 3b4cc3b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/LocationStat/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import LocationSummary from './LocationSummary';
import PeriodStat from './PeriodStat';

const LocationStat = ({ changeYear, changeCity, changeTitle }) => (
<div className="fl w-100 w-30-l pb5 pr5-l">
<div className="fl w-100 w-100-l pb5 pr5-l">
<section className="pb4" style={{ paddingBottom: '0rem' }}>
<p style={{ lineHeight: 1.8 }}>
{CHINESE_LOCATION_INFO_MESSAGE_FIRST}
Expand Down
2 changes: 1 addition & 1 deletion src/components/RunTable/RunRow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { formatPace, titleForRun, formatRunTime } from 'src/utils/utils';
import styles from './style.module.scss';

const RunRow = ({ runs, run, locateActivity, runIndex, setRunIndex }) => {
const distance = (run.distance / 1000.0).toFixed(1);
const distance = (run.distance / 1000.0).toFixed(2);
const pace = run.average_speed;

const paceParts = pace ? formatPace(pace) : null;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { MUNICIPALITY_CITIES_ARR, NEED_FIX_MAP, RUN_TITLES } from './const';

const titleForShow = (run) => {
const date = run.start_date_local.slice(0, 11);
const distance = (run.distance / 1000.0).toFixed(1);
const distance = (run.distance / 1000.0).toFixed(2);
let name = 'Run';
if (run.name.slice(0, 7) === 'Running') {
name = 'run';
Expand Down
7 changes: 7 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"git": {
"deploymentEnabled": {
"gh-pages": false
}
}
}

0 comments on commit 3b4cc3b

Please sign in to comment.