diff --git a/galaxyui/src/app/authors/detail/author-detail.component.html b/galaxyui/src/app/authors/detail/author-detail.component.html index 9ef3a1358..d8b3aa255 100644 --- a/galaxyui/src/app/authors/detail/author-detail.component.html +++ b/galaxyui/src/app/authors/detail/author-detail.component.html @@ -3,8 +3,8 @@
-
-
+
+
@@ -32,14 +32,24 @@

+ + + +
+
-
+
{{count.count}} {{count.title}}
+
@@ -72,34 +82,40 @@ {{ item.name }}
-
{{ item.description }}
+
{{ item.description }}
-
-
+
+
{{ item.download_count }} Downloads
-
+ +
{{ item.watchers_count }} Watchers
-
+ +
{{ item.stargazers_count }} Stars
-
+ +
{{ item.forks_count }} Forks
-
- - - + +
+
diff --git a/galaxyui/src/app/authors/detail/author-detail.component.less b/galaxyui/src/app/authors/detail/author-detail.component.less index e684b4433..5beb050de 100644 --- a/galaxyui/src/app/authors/detail/author-detail.component.less +++ b/galaxyui/src/app/authors/detail/author-detail.component.less @@ -15,17 +15,34 @@ flex-grow: 1; flex-wrap: nowrap; align-items: center; - justify-content: flex-start; - margin-top: 30px; padding-left: 15px; padding-right: 15px; } + .namespace-header-left{ + justify-content: flex-start; + } + + .namespace-header-right{ + @media(min-width: 800px){ + height: 120px; + justify-content: flex-end; + } + } + .namespace-details, .content-summary { flex-grow: 1; flex-shrink: 1; + + } + + .namespace-content-count { + font-size: 16px; + font-weight: 700; + color: @black; } + .namespace-details { display: flex; flex-wrap: nowrap; @@ -66,15 +83,6 @@ } } } - .content-count { - display: inline-block; - color: @black; - font-size: 14px; - margin-right: 15px; - } - .detail-search-toolbar { - margin-top: 40px; - } .repository-list { margin-top: 20px; } @@ -83,26 +91,15 @@ .repo-count { font-size: 12px; } - .list-pf-additional-content.counts { - display: flex; - flex-direction: row; - flex-wrap: nowrap; - justify-content: flex-start; - align-items: middle; - } - .list-pf-additional-content.counts > div { + .content-count{ font-size: 12px; - margin-right: 15px; + margin-right: 5px; .fa { font-size: 14px; } .count { font-weight: 700; - padding: 0 5px; } } - .list-pf-additional-content.counts div:last-child { - margin-right: 0; - } } diff --git a/galaxyui/src/app/authors/detail/author-detail.component.ts b/galaxyui/src/app/authors/detail/author-detail.component.ts index 754f4862f..cb2d833a7 100644 --- a/galaxyui/src/app/authors/detail/author-detail.component.ts +++ b/galaxyui/src/app/authors/detail/author-detail.component.ts @@ -299,9 +299,9 @@ export class AuthorDetailComponent implements OnInit { if (!item.description) { // Legacy Repository objects are missing a description. Will get fixed on first import. if (item.summary_fields['content_objects']) { - for (let i = 0; i < item.summary_fields['content_objects'].length; i++) { - if (item.summary_fields['content_objects'][i]['description']) { - item.description = item.summary_fields['content_objects'][i]['description']; + for (const contentObject of item.summary_fields.content_objects) { + if (contentObject.description) { + item.description = contentObject.description; break; } }