fix: resolve chart visibility issues after CSV upload

- Add fixed width to sidebar (w-64) to prevent layout collapse
- Change chart container from flex-1 to w-full h-full for proper sizing
- Chart now properly displays after CSV upload
This commit is contained in:
Marko Djordjevic 2026-02-12 11:50:48 +01:00
parent 9b5bc9b6b3
commit 11f0759b0e
8 changed files with 37633 additions and 52 deletions

View file

@ -26,7 +26,7 @@ export default function Home() {
return (
<div className="flex h-screen">
{/* Sidebar */}
<aside className="flex flex-col">
<aside className="w-64 flex-shrink-0 flex flex-col border-r border-border">
<div className="p-4 border-b border-border">
<h1 className="text-xl font-bold">Candle Annotator</h1>
</div>

View file

@ -266,7 +266,7 @@ const CandleChart = forwardRef<CandleChartHandle, CandleChartProps>(
}
return (
<div className="flex-1 relative">
<div className="w-full h-full relative">
<div ref={chartContainerRef} className="absolute inset-0" />
<SvgOverlay
chart={chartRef.current}