LPS-38265 - Content of documents and media portlet spills out of portlet boundary

Hi @jonmak08,

Attached is an update for https://issues.liferay.com/browse/LPS-38265.

Please let me know if there are any issues.

Thanks!