Skip to content

Commit 644fb4c

Browse files
committed
fix: small tweaks to chart aspect ratio
1 parent 9e2f672 commit 644fb4c

File tree

1 file changed

+4
-4
lines changed
  • plugins/plugin-codeflare/src/components

1 file changed

+4
-4
lines changed

plugins/plugin-codeflare/src/components/Chart.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ export default class BaseChart extends React.PureComponent<Props> {
7070

7171
private static readonly dimensions = {
7272
width: 120,
73-
height: 200,
73+
height: 160,
7474
}
7575

7676
public static readonly padding = {
77-
bottom: BaseChart.fontSize * 2,
77+
bottom: BaseChart.fontSize * 1.5,
7878
top: BaseChart.fontSize * 4,
79-
left: BaseChart.fontSize * 4,
79+
left: BaseChart.fontSize * 3.5,
8080
right: BaseChart.fontSize * 4,
8181
}
8282

@@ -156,7 +156,7 @@ export default class BaseChart extends React.PureComponent<Props> {
156156
percentage: (value: number) => value + "%",
157157
memory: (value: number) => ~~(value / 1024 / 1024) + " GiB",
158158
timestamp: (timestamp: number) =>
159-
timestamp < 60000 ? (timestamp / 1000).toFixed(0) + "s" : (timestamp / 1000 / 60).toFixed(1) + "m",
159+
timestamp < 60 * 3 * 1000 ? (timestamp / 1000).toFixed(0) + "s" : (timestamp / 1000 / 60).toFixed(1) + "m",
160160
}
161161

162162
private readonly minDomain = {

0 commit comments

Comments
 (0)