Skip to content

Commit ed26f8c

Browse files
committed
んーーーーwwww
1 parent 6de38c7 commit ed26f8c

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/components/Trajectory/TrajectoryChart.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const margin = { top: 16, right: 16, bottom: 40, left: 48 };
1616

1717
export const TrajectoryChart: React.FC<Props> = ({ x, y, title }) => {
1818
return (
19-
<div style={{ width: "100%" }}>
19+
<div style={{ width: "100%", height: 360 }}>
2020
<ParentSize>
2121
{({ width, height }) => {
2222
const outerInnerWidth = Math.max(
@@ -144,5 +144,3 @@ export const TrajectoryChart: React.FC<Props> = ({ x, y, title }) => {
144144
);
145145
};
146146

147-
export default TrajectoryChart;
148-

src/components/Trajectory/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useEffect, useState } from "react";
2-
import TrajectoryChart from "./TrajectoryChart";
2+
import { TrajectoryChart } from "./TrajectoryChart";
33
import type { Condition } from "./type";
44
import { reynoldsNumber, dragCoefficient } from "./utils";
55
import { calculate } from "./calculate";
@@ -223,7 +223,7 @@ const ResultCard = ({ condition }: { condition: Condition }) => {
223223
return (
224224
<div className="card flex flex-col gap-4">
225225
<h2 className="font-bold text-xl">計算結果</h2>
226-
<div className="caption">
226+
<div className="caption w-full min-h-60">
227227
<TrajectoryChart x={x_vals} y={y_vals} title="弾道軌跡" />
228228
</div>
229229
</div>

0 commit comments

Comments
 (0)