[#1982] Add max-height to text resource view

As described in #1982. Ensures large text files don't create massively long pages.