diff --git a/pygeoapi/pygeoapi-skin-dashboard/static/css/default.css b/pygeoapi/pygeoapi-skin-dashboard/static/css/default.css index 33fc4fb7..12f87c0b 100644 --- a/pygeoapi/pygeoapi-skin-dashboard/static/css/default.css +++ b/pygeoapi/pygeoapi-skin-dashboard/static/css/default.css @@ -11,7 +11,7 @@ main { } .crumbs { - background-color:rgb(230, 230, 230); + padding-left: 12px; padding: 6px; } @@ -47,3 +47,18 @@ main { table:not(.horizontal) { max-height: none; } + +@media (max-width: 767px) { + .sidebar { + display: none; + visibility: hidden; + width: 0px; + } + .crumbs { + display: none !important; + } + a.nav-link { + margin: auto; + padding: 4px !important; + } +} diff --git a/pygeoapi/pygeoapi-skin-dashboard/static/css/sb.css b/pygeoapi/pygeoapi-skin-dashboard/static/css/sb.css index 712e56a3..fb61b429 100644 --- a/pygeoapi/pygeoapi-skin-dashboard/static/css/sb.css +++ b/pygeoapi/pygeoapi-skin-dashboard/static/css/sb.css @@ -10284,7 +10284,6 @@ a:focus { } .sidebar { - width: 6.5rem; min-height: 100vh; } diff --git a/pygeoapi/pygeoapi-skin-dashboard/templates/_base.html b/pygeoapi/pygeoapi-skin-dashboard/templates/_base.html index ea02d731..d925f5b8 100644 --- a/pygeoapi/pygeoapi-skin-dashboard/templates/_base.html +++ b/pygeoapi/pygeoapi-skin-dashboard/templates/_base.html @@ -29,19 +29,42 @@ +
+ + + +
+
+

Links

+ {% for provider in config['resources'][data['id']]['providers'] %} {% if 'tile' in provider['type'] %}

Tiles

diff --git a/pygeoapi/pygeoapi-skin-dashboard/templates/collections/items/index.html b/pygeoapi/pygeoapi-skin-dashboard/templates/collections/items/index.html index 23c41d9a..ebc4c428 100644 --- a/pygeoapi/pygeoapi-skin-dashboard/templates/collections/items/index.html +++ b/pygeoapi/pygeoapi-skin-dashboard/templates/collections/items/index.html @@ -1,18 +1,21 @@ {% extends "_base.html" %} {% block title %}{{ super() }} {{ data['title'] }} {% endblock %} {% block crumbs %}{{ super() }} -/ Collections +/ {% trans %}Collections{% endtrans %} {% for link in data['links'] %} {% if link.rel == 'collection' %} / - {{ link['title'] | truncate( 25 ) }} + {{ link['title'] | string | truncate( 25 ) }} {% set col_title = link['title'] %} {% endif %} {% endfor %} -/ Items +/ {% trans %}Items{% endtrans %} {% endblock %} {% block extrahead %} + + + {% endblock %} {% block body %} @@ -46,7 +49,7 @@
Limit: