diff --git a/airlock/static/assets/file_browser/index.css b/airlock/static/assets/file_browser/index.css index 0332e599..2dc3bb19 100644 --- a/airlock/static/assets/file_browser/index.css +++ b/airlock/static/assets/file_browser/index.css @@ -1,30 +1,3 @@ -/* Page layout */ -.browser { - display: grid; - gap: 1rem; - grid-template-columns: repeat(4, minmax(0, 1fr)); - min-height: 100%; - padding-inline: 1rem; -} - -.browser__files { - background-color: white; - box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, - rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px -1px; - grid-column: 1 / 1; - overflow: scroll; -} - -.browser__content { - grid-column: 2 / -1; -} - -.browser__content > div { - display: flex; - flex-direction: column; - gap: 1rem; -} - /* File Card */ #fileCard h2 { font-size: 1.1rem; diff --git a/airlock/templates/base.html b/airlock/templates/base.html index c58b02ee..f51bc1f5 100644 --- a/airlock/templates/base.html +++ b/airlock/templates/base.html @@ -29,7 +29,7 @@ {% include '_includes/header.html' %} -
+
{% alerts messages=messages %} {% block content %}{% endblock %} diff --git a/airlock/templates/file_browser/_includes/file_content.html b/airlock/templates/file_browser/_includes/file_content.html index f389ad4a..d7394dee 100644 --- a/airlock/templates/file_browser/_includes/file_content.html +++ b/airlock/templates/file_browser/_includes/file_content.html @@ -1,12 +1,12 @@ -{% #card id="fileCard" title=path_item.name container=True custom_button=buttons %} -
- -
+{% #card id="fileCard" title=path_item.name container=False custom_button=buttons %} + {% /card %} diff --git a/airlock/templates/file_browser/contents.html b/airlock/templates/file_browser/contents.html index 70fe99e5..f948e960 100644 --- a/airlock/templates/file_browser/contents.html +++ b/airlock/templates/file_browser/contents.html @@ -1,4 +1,4 @@ -
+
{% if path_item.type.name != "REPO" %} {% with template_dir|add:path_item.type.name.lower|add:".html" as template %} {% include template %} diff --git a/airlock/templates/file_browser/index.html b/airlock/templates/file_browser/index.html index a57976b3..99abe8a8 100644 --- a/airlock/templates/file_browser/index.html +++ b/airlock/templates/file_browser/index.html @@ -14,8 +14,8 @@ {% block content %}{% endblock content %} {% block full_width_content %} -
-
+
+
-
+
{% include "file_browser/contents.html" %}