OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Use op-principal classes on the Github user to look like our principals. Further, the CSS was cleaned up
Henriette Darge9fbb74646c36
diff --git a/modules/github_integration/frontend/module/pull-request/pull-request.component.html b/modules/github_integration/frontend/module/pull-request/pull-request.component.htmlindex e948823fd28..937b735720c 100644--- a/modules/github_integration/frontend/module/pull-request/pull-request.component.html+++ b/modules/github_integration/frontend/module/pull-request/pull-request.component.html@@ -12,19 +12,21 @@<div class="op-pull-request--info">{{ text.label_created_by }}- <img- *ngIf="pullRequest._embedded.githubUser"- alt='PR author avatar'- class='op-pull-request--avatar op-avatar op-avatar_mini'- [src]="pullRequest._embedded.githubUser.avatarUrl"- />- <span class='op-pull-request--user'>++ <div class="op-principal"+ *ngIf="pullRequest._embedded.githubUser">+ <img+ alt='PR author avatar'+ class='op-pull-request--avatar op-avatar op-avatar_mini op-principal--avatar'+ [src]="pullRequest._embedded.githubUser.avatarUrl"+ /><a- *ngIf="pullRequest._embedded.githubUser"[href]="pullRequest._embedded.githubUser.htmlUrl"[textContent]="pullRequest._embedded.githubUser.login"- ></a>.- </span>+ class="op-principal--name"+ ></a>+ </div>+ .<span class='op-pull-request--date'>{{ text.label_last_updated_on }}diff --git a/modules/github_integration/frontend/module/pull-request/pull-request.component.sass b/modules/github_integration/frontend/module/pull-request/pull-request.component.sassindex 15fe43d4183..23b75622f4d 100644--- a/modules/github_integration/frontend/module/pull-request/pull-request.component.sass+++ b/modules/github_integration/frontend/module/pull-request/pull-request.component.sass@@ -33,6 +33,7 @@display: gridgrid-template-columns: auto 1fr auto autogrid-template-areas: "link link link link" "title title title state" "info info info info" "checks-label checks-label checks-label checks-label" "checks checks checks checks"+ align-items: centermargin-bottom: 11pxpadding-bottom: 11pxborder-bottom: 1px solid #dddddd@@ -48,26 +49,18 @@line-height: 32pxmargin-right: 20px- &--avatar- grid-area: info-&--info- display: block- grid-area: info- margin-bottom: 3px- font-size: 0.9rem+ display: inline-flexgrid-area: infocolor: var(--color-fg-muted)- // The mini avatar is much higher than the text line. Compensate it.- margin-top: -4px+ &--avatar,&--date- grid-area: info+ margin-left: 0.25rem&--linkgrid-area: linkmargin-top: 6px- font-size: 0.9rem&--stategrid-area: state@@ -75,7 +68,6 @@&--checks-labelgrid-area: checks-labelmargin-top: 12px- font-size: 0.9remfont-weight: var(--base-text-weight-bold)&--checks