Having trouble setting the height for a sticky component
Hi everyone, is there any front end wizards here who can help me recreate Indeed's job details component?
I would like to recreate Indeed's job details component that's to the right of the screen when searching the jobs. It appears that the component knows where the bottom of the page is and it doesn't go off screen also it stretches so that it becomes sticky when it reaches the top of the viewport. Mine becomes sticky when it reaches the top but it goes off screen to the bottom until the viewport reaches 100vh.
I have no idea how to explain that but I hope someone who can help me understands it from the video.
This is the main grid ( I've also tried flex, it does the same thing )
and here's the job details component
I would like to recreate Indeed's job details component that's to the right of the screen when searching the jobs. It appears that the component knows where the bottom of the page is and it doesn't go off screen also it stretches so that it becomes sticky when it reaches the top of the viewport. Mine becomes sticky when it reaches the top but it goes off screen to the bottom until the viewport reaches 100vh.
I have no idea how to explain that but I hope someone who can help me understands it from the video.
This is the main grid ( I've also tried flex, it does the same thing )
and here's the job details component

