When you have a horizontal overflow and a border, it’s sometimes cut off at the visible region of the overflow:
While this is the required effect:
Turns out the fix is pretty easy, it’s enough to set
display: grid on the parent element.
See the solution on codepen.