As mentioned in my previous post I'm going to write my everyday progress here.
And today is May 27, and here is what I did.
There was specific bug in a project which I was working on. For this app I used radix-ui/scrollarea
to be exact I used shadcn-ui scroll area which uses radix ui, the problem was while centering content vertically the scroll wont work. The overflowing content (which is expected to scroll) gets hidden.
I refered many stackoverflow posts & docs, many of them mentioned to use margin: auto;
for the content inside flexbox (which I used to center). But it didn't work. The more I worked on the more I felt terrible.
At last I created another scrollarea, which centers content with fixed height (in vh) not very appropriate but it is what it is.
Top comments (0)