From 0845571763b2a8b3fe2348a0c930141dfca75e6f Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Fri, 10 Nov 2023 23:04:40 +0000 Subject: [PATCH] fix layouy bug where code blocks dont scroll horizontally; fixes #1235 --- _layouts/base.html | 8 +++----- _layouts/post.html | 8 ++++---- assets/css/beautifuljekyll.css | 7 +++++-- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/_layouts/base.html b/_layouts/base.html index dc7ecbc9a562..6d5503395f60 100644 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -25,13 +25,11 @@ {% include head.html %} -
- {% include gtm_body.html %} + {% include gtm_body.html %} - {% include nav.html %} + {% include nav.html %} - {{ content }} -
+ {{ content }} {% include footer.html %} diff --git a/_layouts/post.html b/_layouts/post.html index 7f438b3a34c7..9f27cc3109c0 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -4,7 +4,7 @@ {% include header.html type="post" %} -
+
@@ -39,9 +39,9 @@
{% endif %} -
+
{{ content }} -
+
{% if page.tags.size > 0 %}
@@ -85,4 +85,4 @@ {% include comments.html %}
- + diff --git a/assets/css/beautifuljekyll.css b/assets/css/beautifuljekyll.css index f3b05853ca98..3980141ef054 100644 --- a/assets/css/beautifuljekyll.css +++ b/assets/css/beautifuljekyll.css @@ -22,8 +22,11 @@ body { {% endif %} overflow-wrap: break-word; min-height: 100vh; - display: grid; - grid-template-rows: 1fr auto; + display: flex; + flex-direction: column; +} +body > main { + flex: 1; } p { line-height: 1.5;