Skip to content

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

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.html
index 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.sass
index 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: grid
grid-template-columns: auto 1fr auto auto
grid-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: center
margin-bottom: 11px
padding-bottom: 11px
border-bottom: 1px solid #dddddd
@@ -48,26 +49,18 @@
line-height: 32px
margin-right: 20px
- &--avatar
- grid-area: info
-
&--info
- display: block
- grid-area: info
- margin-bottom: 3px
- font-size: 0.9rem
+ display: inline-flex
grid-area: info
color: 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
&--link
grid-area: link
margin-top: 6px
- font-size: 0.9rem
&--state
grid-area: state
@@ -75,7 +68,6 @@
&--checks-label
grid-area: checks-label
margin-top: 12px
- font-size: 0.9rem
font-weight: var(--base-text-weight-bold)
&--checks