diff --git a/src/short-urls/ShortUrlVisits.js b/src/short-urls/ShortUrlVisits.js index b1c6cb66..98581361 100644 --- a/src/short-urls/ShortUrlVisits.js +++ b/src/short-urls/ShortUrlVisits.js @@ -1,15 +1,15 @@ -import preloader from '@fortawesome/fontawesome-free-solid/faCircleNotch'; -import FontAwesomeIcon from '@fortawesome/react-fontawesome'; -import { isEmpty, mapObjIndexed, pick } from 'ramda'; -import React from 'react'; -import { Doughnut, HorizontalBar } from 'react-chartjs-2'; -import Moment from 'react-moment'; -import { connect } from 'react-redux'; -import { Card, CardBody, CardHeader, UncontrolledTooltip } from 'reactstrap'; -import DateInput from '../common/DateInput'; -import VisitsParser from '../visits/services/VisitsParser'; -import { getShortUrlVisits } from './reducers/shortUrlVisits'; -import './ShortUrlVisits.scss'; +import preloader from '@fortawesome/fontawesome-free-solid/faCircleNotch' +import FontAwesomeIcon from '@fortawesome/react-fontawesome' +import { isEmpty, mapObjIndexed, pick } from 'ramda' +import React from 'react' +import { Doughnut, HorizontalBar } from 'react-chartjs-2' +import Moment from 'react-moment' +import { connect } from 'react-redux' +import { Card, CardBody, CardHeader, UncontrolledTooltip } from 'reactstrap' +import DateInput from '../common/DateInput' +import VisitsParser from '../visits/services/VisitsParser' +import { getShortUrlVisits } from './reducers/shortUrlVisits' +import './ShortUrlVisits.scss' const MutedMessage = ({ children }) =>
@@ -144,23 +144,24 @@ export class ShortUrlsVisits extends React.Component { -
-
e.preventDefault()} className="form-inline mt-4 float-md-right"> - - this.setState({ startDate: date }, () => this.loadVisits())} - className="short-url-visits__date-input" - /> - this.setState({ endDate: date }, () => this.loadVisits())} - className="short-url-visits__date-input" - /> - -
+
+
+
+ this.setState({ startDate: date }, () => this.loadVisits())} + /> +
+
+ this.setState({ endDate: date }, () => this.loadVisits())} + className="short-url-visits__date-input" + /> +
+
diff --git a/src/short-urls/ShortUrlVisits.scss b/src/short-urls/ShortUrlVisits.scss index 4ebf855e..75aadecc 100644 --- a/src/short-urls/ShortUrlVisits.scss +++ b/src/short-urls/ShortUrlVisits.scss @@ -1,3 +1,7 @@ +@import '../utils/base'; + .short-url-visits__date-input { - margin-left: 10px; + @media(max-width: $smMax) { + margin-top: 0.5rem; + } }