From a296efcd58b735def01fe3705e592492db5a5ce0 Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Sat, 14 Dec 2024 23:03:19 +0100 Subject: [PATCH] Fix code overflow --- sass/project.scss | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/sass/project.scss b/sass/project.scss index e127696..1f2ecad 100644 --- a/sass/project.scss +++ b/sass/project.scss @@ -1,14 +1,19 @@ //.language-yaml { pre { - display:flex; - align-items: center; - min-height: 3rem; - white-space: pre-wrap; - word-wrap: break-word; + display: block; + max-width: 100%; overflow-x: auto; - padding: .5rem; - margin: .5rem 0; + overflow-y: auto; + padding: 0.5rem; + margin: 0.5rem 0; border-radius: 5px; + white-space: pre; +} + +code { + display: inline-block; + word-break: break-word; + white-space: pre-wrap; } .project-wrapper {