Skip to content

Commit

Permalink
๐Ÿ› fix: ํ™”๋ฉด ํฌ๊ธฐ ๋ณ€ํ™”์‹œ ์ฐจํŠธ ํฌ๊ธฐ๊ฐ€ ๋ถ€๋“œ๋Ÿฝ๊ฒŒ ๋ณ€ํ•˜์ง€ ์•Š๋Š” ๋ฌธ์ œ ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
baegyeong committed Dec 4, 2024
1 parent 99018b3 commit 6d95ca7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions packages/frontend/src/pages/stock-detail/StockDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ export const StockDetail = () => {
/>
<article className="grid flex-1 grid-cols-1 gap-5 xl:grid-cols-[2fr_1fr] 2xl:grid-cols-[2.5fr_1fr_1fr] [&>section]:gap-5">
<section className="flex flex-col">
<div className="relative h-full">
<TradingChart />
</div>
<TradingChart />
<StockMetricsPanel
eps={eps}
high52w={high52w}
Expand All @@ -51,7 +49,7 @@ export const StockDetail = () => {
loginStatus={loginStatus}
isOwnerStock={userOwnerStock.isOwner}
/>
<section className="flex flex-wrap gap-5 2xl:flex-col 2xl:flex-nowrap">
<section className="flex flex-col flex-wrap gap-5 lg:flex-row 2xl:flex-col 2xl:flex-nowrap">
<div className="flex-1">
<NotificationPanel className="h-full w-full" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/stock-detail/TradingChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const TradingChart = () => {
useChartResize({ containerRef, chart });

return (
<div className="flex h-[30rem] flex-col xl:h-full">
<div className="flex min-h-[30rem] flex-col">
<section className="flex justify-end gap-5">
{TIME_UNIT.map((option) => (
<RadioButton
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/src/pages/stock-detail/hooks/useChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const useChart = ({
chart.current = createChart(containerInstance, {
width: containerInstance.clientWidth,
height: containerInstance.clientHeight,
autoSize: true,
...createChartOptions(graphTheme),
});

Expand Down

0 comments on commit 6d95ca7

Please sign in to comment.