Skip to content

Commit

Permalink
Leve ajuste no layout do dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Oct 15, 2024
1 parent 01f24ef commit 61bb296
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
9 changes: 4 additions & 5 deletions frontend/src/pages/Dashboard/Chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,10 @@ const Chart = () => {
type="monotone"
dataKey="amount"
stroke={theme.palette.primary.main}
strokeDasharray="3 4 5 2"
strokeWidth={.1}
fillOpacity={1}
fill="#a0b3f4"
activeDot={true}
strokeWidth={2}
fillOpacity={0.7}
fill="#3f51b5"
activeDot={{ r: 8 }}
/>
</AreaChart>
</ResponsiveContainer>
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/pages/Dashboard/TagCloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ const TagCloud = () => {
<Chip
key={tag.id}
label={`${tag.name} (${tag.usageCount})`}
style={{ backgroundColor: tag.color }}
style={{
backgroundColor: tag.color,
borderRadius: "8px",
padding: "6px 12px",
}}
className={classes.chip}
/>
))}
Expand Down
21 changes: 14 additions & 7 deletions frontend/src/pages/Dashboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,27 @@ const useStyles = makeStyles(theme => ({
overflow: "auto",
flexDirection: "column",
height: 240,
borderRadius: "12px",
backgroundColor: "#f9fafc",
},
customFixedHeightPaper: {
padding: theme.spacing(2),
display: "flex",
overflow: "auto",
overflow: "none",
flexDirection: "column",
height: 120,
borderRadius: "12px",
backgroundColor: "#f9fafc",
boxShadow: "0px 4px 12px rgba(0, 0, 0, 0.1)",
},
customFixedHeightPaperLg: {
padding: theme.spacing(2),
display: "flex",
overflow: "auto",
flexDirection: "column",
height: "100%",
borderRadius: "12px",
backgroundColor: "#f9fafc",
},
}));

Expand All @@ -63,8 +70,8 @@ const Dashboard = () => {
<div>
<Container maxWidth="lg" className={classes.container}>
<Grid container spacing={3}>
<Grid item xs={4}>
<Paper className={classes.customFixedHeightPaper} style={{ overflow: "hidden" }}>
<Grid item xs={12} sm={6} md={4}>
<Paper className={classes.customFixedHeightPaper}>
<Typography component="h3" variant="h6" color="primary" paragraph>
{i18n.t("dashboard.messages.inAttendance.title")}
</Typography>
Expand All @@ -75,8 +82,8 @@ const Dashboard = () => {
</Grid>
</Paper>
</Grid>
<Grid item xs={4}>
<Paper className={classes.customFixedHeightPaper} style={{ overflow: "hidden" }}>
<Grid item xs={12} sm={6} md={4}>
<Paper className={classes.customFixedHeightPaper}>
<Typography component="h3" variant="h6" color="primary" paragraph>
{i18n.t("dashboard.messages.waiting.title")}
</Typography>
Expand All @@ -87,8 +94,8 @@ const Dashboard = () => {
</Grid>
</Paper>
</Grid>
<Grid item xs={4}>
<Paper className={classes.customFixedHeightPaper} style={{ overflow: "hidden" }}>
<Grid item xs={12} sm={6} md={4}>
<Paper className={classes.customFixedHeightPaper}>
<Typography component="h3" variant="h6" color="primary" paragraph>
{i18n.t("dashboard.messages.closed.title")}
</Typography>
Expand Down

0 comments on commit 61bb296

Please sign in to comment.