From 13485a948c728fddecc33862450020f4f0837938 Mon Sep 17 00:00:00 2001 From: mlfaa Date: Wed, 29 Dec 2021 14:06:20 -0300 Subject: [PATCH] #245 - Adjusting spacing in audiencies page --- src/components/ChartDataFrame/style.js | 2 +- src/components/Headers/SectionHeader/index.js | 2 +- src/components/Headers/SubSectionHeader/index.js | 2 +- src/components/Headers/SubSectionHeader/style.js | 7 +++++++ src/containers/Audiencias/index.js | 15 +++++++-------- src/containers/Audiencias/style.js | 13 ++++++++++--- src/styles/pages/audienciasPageStyle.js | 3 +-- 7 files changed, 28 insertions(+), 16 deletions(-) diff --git a/src/components/ChartDataFrame/style.js b/src/components/ChartDataFrame/style.js index 961248cb..460931e3 100644 --- a/src/components/ChartDataFrame/style.js +++ b/src/components/ChartDataFrame/style.js @@ -5,7 +5,7 @@ export const useStyles = makeStyles((theme) => ({ root: { display: 'flex', width: '100%', - padding: '0px 16px 0px 0px', + padding: '0px 16px 0px 16px', [theme.breakpoints.up('sm')]: { padding: '0px 35px 0px 0px', diff --git a/src/components/Headers/SectionHeader/index.js b/src/components/Headers/SectionHeader/index.js index ec3fa89a..bda021dc 100644 --- a/src/components/Headers/SectionHeader/index.js +++ b/src/components/Headers/SectionHeader/index.js @@ -18,7 +18,7 @@ export default function SectionHeader(props) { const handleClose = () => setOpen(false); return ( - + diff --git a/src/components/Headers/SubSectionHeader/index.js b/src/components/Headers/SubSectionHeader/index.js index 7c6a8afe..fbdb49d1 100644 --- a/src/components/Headers/SubSectionHeader/index.js +++ b/src/components/Headers/SubSectionHeader/index.js @@ -9,7 +9,7 @@ export default function SubSectionHeader(props) { const { title, style } = props; return ( - + {title} diff --git a/src/components/Headers/SubSectionHeader/style.js b/src/components/Headers/SubSectionHeader/style.js index 29f8dcc0..819697c5 100644 --- a/src/components/Headers/SubSectionHeader/style.js +++ b/src/components/Headers/SubSectionHeader/style.js @@ -2,6 +2,13 @@ import { makeStyles } from '@material-ui/core'; export const useStyles = makeStyles((theme) => ({ + subSectionHeader: { + padding: '0px 0px 0px 16px', + + [theme.breakpoints.up('sm')]: { + padding: '0px', + }, + }, typography: { fontWeight: 'bold', fontSize: '16px', diff --git a/src/containers/Audiencias/index.js b/src/containers/Audiencias/index.js index 9b30b852..c03bca5f 100644 --- a/src/containers/Audiencias/index.js +++ b/src/containers/Audiencias/index.js @@ -603,14 +603,14 @@ function Audiencias(props) { headerColors={headerColors} initialYear={audienceInitialYear} /> - + {showCachedDataAlert && ( )} - + )) } - - - + + + - {/* */} @@ -768,7 +767,7 @@ function Audiencias(props) { )} - + {newUsersChartData !== undefined && newUsersChartData.length > 0 ? ( diff --git a/src/containers/Audiencias/style.js b/src/containers/Audiencias/style.js index 0190c600..ab8df3ba 100644 --- a/src/containers/Audiencias/style.js +++ b/src/containers/Audiencias/style.js @@ -76,11 +76,11 @@ export const useStyles = makeStyles((theme) => ({ display: 'none', }, }, - caroulselBox: { + totalsGridBox: { width: '100%', minHeight: '100%', display: 'flex', - padding: '2px 0px 16px 0px', + padding: '2px 0px 0px 0px', [theme.breakpoints.up('sm')]: { padding: '0px 0px 19px 0px', @@ -90,7 +90,14 @@ export const useStyles = makeStyles((theme) => ({ justifyContent: 'center', }, }, - caroulselInsideBox: { + totalsGridInsideBox: { width: '100%', }, + sectionHeader: { + padding: '0px 0px 0px 16px', + + [theme.breakpoints.up('sm')]: { + padding: '0px', + }, + }, })); diff --git a/src/styles/pages/audienciasPageStyle.js b/src/styles/pages/audienciasPageStyle.js index 567a8820..1b28d8ae 100644 --- a/src/styles/pages/audienciasPageStyle.js +++ b/src/styles/pages/audienciasPageStyle.js @@ -12,7 +12,6 @@ export const useStyles = makeStyles((theme) => ({ maxWidth: '1280px', marginLeft: 'auto', marginRight: 'auto', - padding: '0px 0px 0px 16px', marginTop: '40px', // '@media (max-width: 1025px)': { @@ -30,7 +29,7 @@ export const useStyles = makeStyles((theme) => ({ }, }, boxTitle: { - padding: '0px 16px 0px 0px', + padding: '0px 16px 0px 16px', [theme.breakpoints.up('sm')]: { padding: '0px 35px 0px 0px',