From c7d0214aaa3bed14b6afffbd79831ff35ff16fdc Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Sat, 18 Jun 2016 12:21:34 +0100 Subject: [PATCH] #1664 Set a maximum height for codeblocks --- .../vector/css/matrix-react-sdk/views/messages/MTextBody.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/skins/vector/css/matrix-react-sdk/views/messages/MTextBody.css b/src/skins/vector/css/matrix-react-sdk/views/messages/MTextBody.css index 93a89ad1..fcf397fd 100644 --- a/src/skins/vector/css/matrix-react-sdk/views/messages/MTextBody.css +++ b/src/skins/vector/css/matrix-react-sdk/views/messages/MTextBody.css @@ -17,3 +17,8 @@ limitations under the License. .mx_MTextBody { white-space: pre-wrap; } + +.mx_MTextBody pre{ + overflow-y: auto; + max-height: 30vh; +}