Outline mask texture?

Unfortunately for me the outline is getting cut by the edges of the texture. What should I add? I already tried to scale the uv, but nothing changes.

This is my code now:


I made a function for the outline code for cleaner workspace.