Hey thanks for the reply!
Oh sorry those were created with the scaffolder. I wasn't using any of it, but rather made use of tailwindcss in my code. I cleaned up that codesandbox just now and would really appreciate if you or anyone can take a look at it again. Everything relevant is written inside pages/index.tsx, and styles/globals.css is used for some basic css reset, nothing more.
https://codesandbox.io/p/sandbox/withered-shadow-zdcqr1?file=README.md
The gist of it is that instead of a block display with two children of 50% width like in the example, I want to utilize the grid display of two columns. Somehow when I did the switch, if you change the screen size the pinned element keep its width and not changing.
The pin property just somehow adds fixed width to whatever element I point it to pin and I think that's the thing causing issue.