fix #3

Merged
hardik merged 1 commits from new into main 2026-05-29 12:10:40 +05:30
1 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@ import "./ScrollCandle.css";
// Space taken by flame + wick + base + label + bottom offset + header (ticker 36 + AppBar 76) + safety gap // Space taken by flame + wick + base + label + bottom offset + header (ticker 36 + AppBar 76) + safety gap
const NON_BODY_HEIGHT = 70 + 8 + 10 + 24 + 40 + 112 + 16; const NON_BODY_HEIGHT = 70 + 8 + 10 + 24 + 40 + 112 + 16;
const CANDLE_MIN_HEIGHT = 14; // px — almost fully melted const CANDLE_MIN_HEIGHT = 14; // px — almost fully melted
//
export function ScrollCandle() { export function ScrollCandle() {
const [maxHeight, setMaxHeight] = useState( const [maxHeight, setMaxHeight] = useState(
() => Math.max(200, window.innerHeight - NON_BODY_HEIGHT) () => Math.max(200, window.innerHeight - NON_BODY_HEIGHT)