From 629d58b041a827826ab69b1c838727e1379576f2 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 16 Jul 2021 19:16:15 +0200 Subject: [PATCH] limit code block height --- src/platform/web/ui/css/themes/element/timeline.css | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/platform/web/ui/css/themes/element/timeline.css b/src/platform/web/ui/css/themes/element/timeline.css index 9f9ff973..9167005b 100644 --- a/src/platform/web/ui/css/themes/element/timeline.css +++ b/src/platform/web/ui/css/themes/element/timeline.css @@ -244,7 +244,15 @@ only loads when the top comes into view*/ .Timeline_messageBody pre { border: 1px solid rgb(229, 229, 229); - padding: 10px; + padding: 0.5em; + max-height: 30em; + overflow: auto; +} + +.Timeline_messageBody pre > code { + background-color: unset; + border-radius: unset; + display: block; } .Timeline_messageBody blockquote {