Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 18 additions & 19 deletions src/components/ChartView/ChartView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export function ChartView() {
</p>
</div>
</div>
) : !spec ? (
) : !spec && (
<div
style={{
flex: 1,
Expand Down Expand Up @@ -342,25 +342,24 @@ export function ChartView() {
</p>
</div>
</div>
) : (
<div
ref={containerRef}
style={{
flex: 1,
backgroundColor: 'var(--color-bg-secondary)',
borderRadius: '16px',
padding: '24px',
border: '1px solid var(--color-border)',
position: 'relative',
zIndex: 1,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
animation: 'fadeIn 0.4s ease-out',
overflow: 'hidden',
}}
/>
)}
<div
ref={containerRef}
style={{
flex: 1,
backgroundColor: 'var(--color-bg-secondary)',
borderRadius: '16px',
padding: '24px',
border: '1px solid var(--color-border)',
position: 'relative',
zIndex: 1,
display: spec ? 'flex' : 'none', // Hide the div when there is no graph
alignItems: 'center',
justifyContent: 'center',
animation: spec ? 'fadeIn 0.4s ease-out' : 'none', // Disable animation when hidden
overflow: 'hidden',
}}
/>

{/* Footer gradient line */}
<div
Expand Down