Skip to content

Commit 296a2e6

Browse files
committed
fix: layout
1 parent 4686fee commit 296a2e6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.center-content {
2+
display: flex;
3+
justify-content: center;
4+
width: 100%;
5+
}

frontend/app/chart/chart.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import GlobalState, { FuelType } from '../GlobalState';
2121
import { type TimeSlot } from '../model/time-slot-response';
2222
import { type GsPoint } from '../model/gs-point';
2323
import { useAtom } from "jotai";
24+
import styles from "./chart.module.css";
2425

2526
export interface ChartProps {
2627
timeSlots: TimeSlot[];
@@ -76,6 +77,7 @@ export default function Chart(props: ChartProps) {
7677
<Line name={'AvgPrice: '+(Math.round(avgValue*1000)/1000)} type="monotone" dataKey="price" stroke={lineColor} />
7778
</LineChart>
7879
</ResponsiveContainer>
80+
<div className={styles['center-content']}>
7981
<FormControl>
8082
<RadioGroup
8183
row
@@ -89,6 +91,7 @@ export default function Chart(props: ChartProps) {
8991
<FormControlLabel value={FuelType.Diesel} control={<Radio />} label="Diesel" />
9092
</RadioGroup>
9193
</FormControl>
94+
</div>
9295
</div>
9396
);
9497
}

0 commit comments

Comments
 (0)