Merge pull request #401 from sosedoff/db-object-counter-style

Tweak sidebar database object counters styles
This commit is contained in:
Dan Sosedoff
2018-12-19 19:41:45 -06:00
committed by GitHub
3 changed files with 14 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@@ -661,6 +661,14 @@
line-height: 30px;
height: 30px;
padding: 0px 8px;
overflow: hidden;
}
.schema .schema-container .schema-group .schema-group-count {
color: #999;
display: inline-block;
float: right;
margin-right: 8px;
}
.schema .schema-container .schema-group ul {

View File

@@ -124,7 +124,7 @@ function buildSchemaSection(name, objects) {
if (name == "public" && group == "table") group_klass = "expanded";
section += "<div class='schema-group " + group_klass + "'>";
section += "<div class='schema-group-title'><i class='fa fa-chevron-right'></i><i class='fa fa-chevron-down'></i> " + titles[group] + " (" + objects[group].length + ")</div>";
section += "<div class='schema-group-title'><i class='fa fa-chevron-right'></i><i class='fa fa-chevron-down'></i> " + titles[group] + " <span class='schema-group-count'>" + objects[group].length + "</span></div>";
section += "<ul data-group='" + group + "'>";
if (objects[group]) {