Your comments

I’m not very experienced in programming, but I had a similar issue in my app. The problem might be related to the border between the second-to-last and the last tab, or at the very end of the last tab. Because of this, the block either disappears or wraps to the next line. One possible solution is to change the border style to outside or inside, or to properly calculate the total width of the block including the borders of each tab so that it fits the screen width precisely. Try reproducing the issue by adjusting the width of the tab container to even and odd values during development.

I’ve tried your suggestions, but the issue remains.