Less glitchy (and template logic-free) category border

Now it doesn't flash orange when you change categories