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 80e86a26..58195bd8 100644 --- a/hknweb/templates/events/index.html +++ b/hknweb/templates/events/index.html @@ -185,10 +185,15 @@ overflow: auto; } + @media screen and (min-width: 1000px) { .content-wrapper { - left: 12.5%; - position: relative; + {% if show_sidebar %} + left: 5%; + {% else %} + left: 12.5%; + {% endif %} + position: relative; } }