diff --git a/components/MetricsBar.module.css b/components/MetricsBar.module.css index abde53a3..ddfe5c7d 100644 --- a/components/MetricsBar.module.css +++ b/components/MetricsBar.module.css @@ -1,3 +1,13 @@ .container { display: flex; } + +@media only screen and (max-width: 1000px) { + .container { + padding-bottom: 20px; + } + + .container > div:last-child { + display: none; + } +} diff --git a/components/WebsiteDetails.js b/components/WebsiteDetails.js index e13015c5..6b963f1b 100644 --- a/components/WebsiteDetails.js +++ b/components/WebsiteDetails.js @@ -23,7 +23,7 @@ export default function WebsiteDetails({ websiteId, defaultDateRange = '7day' }) } function handleDateChange(values) { - setDateRange(values); + setTimeout(() => setDateRange(values), 300); } useEffect(() => { @@ -58,7 +58,7 @@ export default function WebsiteDetails({ websiteId, defaultDateRange = '7day' }) {visible => ( {visible => ( [class*='col-']:last-child { padding-right: 0; } + +@media only screen and (max-width: 1000px) { + .row { + border: 0; + } + + .row > [class*='col-'] { + border-top: 1px solid #e1e1e1; + border-left: 0; + padding: 0; + } +}