Fix code highlight responsiveness on resize