Skip to content

Commit

Permalink
Merge branch 'frontend-fix-accountsummary-spacing' into release-v4.46.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thisconnect committed Nov 14, 2024
2 parents 91e4ed7 + 05396ae commit f2d9df9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontends/web/src/routes/account/summary/chart.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
margin: var(--spacing-half) 0 0 0;
}

@media (max-width: 640px){
@media (max-width: 768px){
.chart{
margin-bottom: var(--spacing-default);
}
Expand Down
4 changes: 2 additions & 2 deletions frontends/web/src/routes/account/summary/chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const Chart = ({
const [source, setSource] = useState<'daily' | 'hourly'>(chartDisplay === 'week' ? 'hourly' : 'daily');
const [difference, setDifference] = useState<number>();
const [diffSince, setDiffSince] = useState<string>();
const [isMobile, setIsMobile] = useState(window.innerWidth <= 640);
const [isMobile, setIsMobile] = useState(window.innerWidth <= 768);
const [tooltipData, setTooltipData] = useState<{
toolTipVisible: boolean;
toolTipValue?: string;
Expand Down Expand Up @@ -227,7 +227,7 @@ export const Chart = ({
}, [chart, chartDisplay]);

const onResize = useCallback(() => {
const isMobile = window.innerWidth <= 640;
const isMobile = window.innerWidth <= 768;
setIsMobile(isMobile);
if (!chart.current || !ref.current) {
return;
Expand Down

0 comments on commit f2d9df9

Please sign in to comment.