From 8958449e561b8838e0d3953b6260b8cb11de6eb4 Mon Sep 17 00:00:00 2001 From: Yann Soubeyrand Date: Fri, 21 Apr 2023 19:32:14 +0200 Subject: [PATCH] css: fix horizontal scrollbar issues IIUC, Bootstrap row has negative left and right margins to counteract col padding (https://getbootstrap.com/docs/5.3/layout/grid/#how-it-works). Setting col padding to 0 can lead to issues where a pointless horizontal scrollbar is added to the browser window. Signed-off-by: Yann Soubeyrand --- layouts/community/list.html | 2 +- layouts/shortcodes/blocks/cover.html | 2 +- layouts/shortcodes/blocks/lead.html | 2 +- layouts/shortcodes/blocks/section.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/community/list.html b/layouts/community/list.html index 08e949e414..4ad718f168 100644 --- a/layouts/community/list.html +++ b/layouts/community/list.html @@ -4,7 +4,7 @@
-
+

{{ T "community_join" . }}

diff --git a/layouts/shortcodes/blocks/cover.html b/layouts/shortcodes/blocks/cover.html index 36790be4b0..a055c399f9 100644 --- a/layouts/shortcodes/blocks/cover.html +++ b/layouts/shortcodes/blocks/cover.html @@ -28,7 +28,7 @@
-
+
{{ with .Get "title" }}

{{ $title := . }}{{ with $logo_image }}{{ $logo_image_resized := (.Fit (printf "70x70 %s" $logo_anchor)) }}{{ end }}{{ $title | html }}

{{ end }} diff --git a/layouts/shortcodes/blocks/lead.html b/layouts/shortcodes/blocks/lead.html index 5afe34c647..4c0582533c 100644 --- a/layouts/shortcodes/blocks/lead.html +++ b/layouts/shortcodes/blocks/lead.html @@ -8,7 +8,7 @@
-
+
{{/* Do NOT remove this comment! It ends the HTML block above. See https://spec.commonmark.org/0.30/#html-blocks, 7. */}} diff --git a/layouts/shortcodes/blocks/section.html b/layouts/shortcodes/blocks/section.html index fbe8f8c7ec..29f2e79e06 100644 --- a/layouts/shortcodes/blocks/section.html +++ b/layouts/shortcodes/blocks/section.html @@ -4,7 +4,7 @@
-
+
{{/* Do NOT remove this comment! It ends the HTML block above. See https://spec.commonmark.org/0.30/#html-blocks, 7. */}} {{ .Inner -}}