Blocking the left and right movement of the view

am working on placing some buttons on a dashboard.
How can I use the entire screen, without the empty border around it?
If I set the buttons to fill the screen edge-to-edge, the dashboard can move slightly to the left and right. But if I make the buttons a bit smaller, this doesn’t happen.

So, there are actually two questions.

You change the dashboard to panel view

I mean this effect

swipe

My Android does not do that, so it is either iPhone or maybe a swipe integration you have installed.

It is caused by the buttons being too close to the outer edge. I have temporarily fixed this with some tricks to prevent the issue from occurring. However, I haven’t found a proper fix to prevent it yet.