diff --git a/src/Components/Programs/Timeline.js b/src/Components/Programs/Timeline.js index 43fc7da3..680de566 100644 --- a/src/Components/Programs/Timeline.js +++ b/src/Components/Programs/Timeline.js @@ -20,7 +20,7 @@ function Timeline() { const scrollRef = useRef(); //scrolls the timeline to the current date and month useEffect(() => { - scrollRef.current.scrollTo({x:(30*curr_month+p-1)*40}); + scrollRef.current.scrollTo({x:(30*curr_month+p-1)*36}); }) //onclick scrolls the timeline to the left const scrollLeft=()=>{ @@ -98,7 +98,7 @@ function Timeline() { )) } - Today {dayjs().date()}th {months[curr_month][1]} + Today {dayjs().date()}th {months[curr_month][1]} { months.map((m,index)=>(