Responsive component with overflow scroll (Tailwind)
Hello everyone!
I wanted an element which takes the entire space available but it should not overflow and increase the page height. I am unable to think of a solution without giving it a specific height which defeats the purpose of it being responsive.
Somehow this code worked but I dont know how (Check images, the highlighted part is the "ChatDialogs" component in question)
If there is a better way to do it please let me know.
Here is the code if you want to check it out : https://github.com/Hiperultimate/groupy/blob/chat-page-FE/src/components/ChatComponent/ChatArea.tsx
Edit:
Let me know if there is anything you need from my side or if my query is not detailed enough. I have tried looking it up on the web but failed.
I wanted an element which takes the entire space available but it should not overflow and increase the page height. I am unable to think of a solution without giving it a specific height which defeats the purpose of it being responsive.
Somehow this code worked but I dont know how (Check images, the highlighted part is the "ChatDialogs" component in question)
If there is a better way to do it please let me know.
Here is the code if you want to check it out : https://github.com/Hiperultimate/groupy/blob/chat-page-FE/src/components/ChatComponent/ChatArea.tsx
Edit:
Let me know if there is anything you need from my side or if my query is not detailed enough. I have tried looking it up on the web but failed.


GitHub
A social networking platform made using tRPC, TypeScript, Tailwind, Next, Prisma - Hiperultimate/groupy
