Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

fix chart margins

gingervitis3822e49591c3
diff --git a/web/pages/components/chart.tsx b/web/pages/components/chart.tsx
index 6dc48e7bd9..977ebdbd41 100644
--- a/web/pages/components/chart.tsx
+++ b/web/pages/components/chart.tsx
@@ -1,6 +1,6 @@
import { LineChart } from 'react-chartkick'
import styles from '../../styles/styles.module.css';
-import 'chart.js'
+import 'chart.js';
const defaultProps = {
active: false,
@@ -49,17 +49,18 @@ export default function Chart({ data, title, color, unit, dataCollections }: Cha
});
return (
- <LineChart
- className={styles.lineChartContainer}
- xtitle="Time"
- ytitle={title}
- suffix={unit}
- legend="bottom"
- color={color}
- data={renderData}
- download={title}
- />
- )
+ <div className={styles.lineChartContainer}>
+ <LineChart
+ xtitle="Time"
+ ytitle={title}
+ suffix={unit}
+ legend="bottom"
+ color={color}
+ data={renderData}
+ download={title}
+ />
+ </div>
+ );
}
Chart.defaultProps = {
diff --git a/web/pages/hardware-info.tsx b/web/pages/hardware-info.tsx
index 2185f2ff9d..159c3fa8dc 100644
--- a/web/pages/hardware-info.tsx
+++ b/web/pages/hardware-info.tsx
@@ -100,9 +100,7 @@ const series = [
/>
</Row>
- <div className="chart-container">
- <Chart title="% used" dataCollections={series} color="#FF7700" unit="%" />
- </div>
+ <Chart title="% used" dataCollections={series} color="#FF7700" unit="%" />
</div>
</div>
);
diff --git a/web/pages/viewer-info.tsx b/web/pages/viewer-info.tsx
index e3c0e577d2..5ea4c80b65 100644
--- a/web/pages/viewer-info.tsx
+++ b/web/pages/viewer-info.tsx
@@ -120,9 +120,7 @@ export default function ViewersOverTime() {
prefix={<UserOutlined />}
/>
</Row>
- <div className="chart-container">
- <Chart title="Viewers" data={viewerInfo} color="#2087E2" unit="" />
- </div>
+ <Chart title="Viewers" data={viewerInfo} color="#2087E2" unit="" />
<Table dataSource={clients} columns={columns} rowKey={(row) => row.userAgent} />
</div>
);
diff --git a/web/styles/globals.scss b/web/styles/globals.scss
index a20a8d0f8d..a1278937a5 100644
--- a/web/styles/globals.scss
+++ b/web/styles/globals.scss
@@ -35,10 +35,6 @@ pre {
border-radius: .5em;
}
-.recharts-wrapper {
- font-size: 12px;
-}
-
@media (prefers-color-scheme: dark) {
@import "~antd/dist/antd.dark";
pre {