From 5438a579442a637bfdca3a597910420887859bad Mon Sep 17 00:00:00 2001 From: 508312 <113813353+508312@users.noreply.github.com> Date: Sun, 22 Oct 2023 12:03:19 -0700 Subject: [PATCH 1/3] Fix for calendar overflow issue. --- hknweb/templates/events/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hknweb/templates/events/index.html b/hknweb/templates/events/index.html index 80e86a26..bf5e4ba5 100644 --- a/hknweb/templates/events/index.html +++ b/hknweb/templates/events/index.html @@ -187,7 +187,12 @@ @media screen and (min-width: 1000px) { .content-wrapper { - left: 12.5%; + {% if show_sidebar %} + left: 3.33%; + {% else %} + left: 12.5%; + {% endif %} + position: relative; } } From c9bfc3992a8709f52cdf16f825e07adb5f379e06 Mon Sep 17 00:00:00 2001 From: 508312 <113813353+508312@users.noreply.github.com> Date: Thu, 16 Nov 2023 15:37:03 -0800 Subject: [PATCH 2/3] Base overflow set to auto, offset of calendar set to 5% instead of 12.5% to account for side bar --- hknweb/static/css/base.css | 1 + hknweb/templates/events/index.html | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hknweb/static/css/base.css b/hknweb/static/css/base.css index 0b4b4c3d..fece690f 100644 --- a/hknweb/static/css/base.css +++ b/hknweb/static/css/base.css @@ -24,6 +24,7 @@ body { .content { padding-bottom: 1em; + overflow:auto; } /* diff --git a/hknweb/templates/events/index.html b/hknweb/templates/events/index.html index bf5e4ba5..9492528e 100644 --- a/hknweb/templates/events/index.html +++ b/hknweb/templates/events/index.html @@ -185,15 +185,14 @@ overflow: auto; } + @media screen and (min-width: 1000px) { .content-wrapper { {% if show_sidebar %} - left: 3.33%; + left: 5%; {% else %} left: 12.5%; {% endif %} - - position: relative; } } From c39905812503643a8073931ef3dfce29fe037be2 Mon Sep 17 00:00:00 2001 From: 508312 <113813353+508312@users.noreply.github.com> Date: Thu, 16 Nov 2023 15:41:55 -0800 Subject: [PATCH 3/3] returned relative position --- hknweb/templates/events/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/hknweb/templates/events/index.html b/hknweb/templates/events/index.html index 9492528e..58195bd8 100644 --- a/hknweb/templates/events/index.html +++ b/hknweb/templates/events/index.html @@ -193,6 +193,7 @@ {% else %} left: 12.5%; {% endif %} + position: relative; } }