From fe39102484d5582df9449470e61d1e752b439b45 Mon Sep 17 00:00:00 2001 From: Kev Date: Fri, 3 Dec 2021 20:27:37 +0100 Subject: [PATCH] Limit snippet blob height to 500px Changelog: changed MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75942 Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/255175 --- app/assets/stylesheets/framework/snippets.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/assets/stylesheets/framework/snippets.scss b/app/assets/stylesheets/framework/snippets.scss index c59e70c80dfe96..39786aa013812c 100644 --- a/app/assets/stylesheets/framework/snippets.scss +++ b/app/assets/stylesheets/framework/snippets.scss @@ -16,6 +16,11 @@ .snippet-file-content { border-radius: 3px; + .file-content { + max-height: 500px; + overflow-y: auto; + } + + .snippet-file-content { @include gl-mt-5; } -- GitLab