Take a look at the test environment where this problem is occurring https://codesandbox.io/s/nice-cache-kl12v
My website design is being done with antd. Right now, I'm facing an issue where I need to display notifications to the user, which are accessed by clicking on the notifications icon located at the top right hand side of the navigation bar.
I used the Popover feature from antd design to render this. When clicked, it should retrieve data from the back end and show it in a dialog box.
The problem is that the popover dialog box is appearing outside of the viewport, causing a horizontal scrollbar to appear. I want the dialog box to display within the viewport without stretching out or creating a scrollbar.
I've tried using the overflow-x: hidden attribute to hide the scrollbar, but then the popover content becomes invisible. Any suggestions would be greatly appreciated!