diff --git a/web/main/resources.ejs b/web/main/resources.ejs index bb81af915..47c99f7db 100644 --- a/web/main/resources.ejs +++ b/web/main/resources.ejs @@ -12,6 +12,25 @@ .fix-pill-form { min-width: 65px; } + .table { + border-spacing: 0; + border-collapse: separate; + border-radius: 10px; + /* border: 1px solid black; */ + } + thead.expanded { + border-radius: 0; + border-spacing: 1; + border-collapse: collapse; + /* border-bottom-left-radius: 0; + border-bottom-right-radius: 0; */ + } + body.theme--dark .table .thead-light th { + border-spacing: 0; + border-collapse: separate; + border-radius: 10px; + overflow: hidden; + }
@@ -67,10 +86,10 @@
<% for (const resGroup of resGroups) { %> -
+
- +
<%= resGroup.subPath %> @@ -380,6 +399,7 @@ function toggleResGroup(groupCardElement, single, show) { + const thead = groupCardElement.querySelector('thead'); const tbody = groupCardElement.querySelector("tbody"); const icon = groupCardElement.querySelector('.toggle-icon i'); if (show === undefined) { @@ -387,6 +407,7 @@ } const groupDivName = groupCardElement.id.split('-').pop(); if (show) { + thead.classList.add('expanded'); tbody.classList.remove('collapse'); icon.classList.remove('icon-arrow-down'); icon.classList.add('icon-arrow-up'); @@ -395,6 +416,7 @@ } collapsedGroups.delete(groupDivName); } else { + thead.classList.remove('expanded'); tbody.classList.add('collapse'); icon.classList.add('icon-arrow-down'); icon.classList.remove('icon-arrow-up');