diff --git a/app/components/users/row_component.rb b/app/components/users/row_component.rb index b5a435af947b..f0ce07fb7bef 100644 --- a/app/components/users/row_component.rb +++ b/app/components/users/row_component.rb @@ -46,7 +46,7 @@ def row_css_class def login icon = helpers.avatar user, size: :mini - link = link_to h(user.login), helpers.allowed_management_user_profile_path(user) + link = link_to h(user.login), helpers.allowed_management_user_profile_path(user), class: "op-principal--name" icon + link end diff --git a/frontend/src/app/shared/components/principal/principal-renderer.service.ts b/frontend/src/app/shared/components/principal/principal-renderer.service.ts index 7d549530cc62..f0382aacd1e8 100644 --- a/frontend/src/app/shared/components/principal/principal-renderer.service.ts +++ b/frontend/src/app/shared/components/principal/principal-renderer.service.ts @@ -151,6 +151,7 @@ export class PrincipalRendererService { } const image = new Image(); + image.classList.add('op-principal--avatar'); image.classList.add('op-avatar'); image.classList.add(`op-avatar_${options.size}`); image.src = url; diff --git a/frontend/src/global_styles/content/_principal.sass b/frontend/src/global_styles/content/_principal.sass index 46486d24af03..3eb36b5d15f0 100644 --- a/frontend/src/global_styles/content/_principal.sass +++ b/frontend/src/global_styles/content/_principal.sass @@ -16,6 +16,7 @@ flex-grow: 1 flex-shrink: 1 min-width: 0 // See: https://css-tricks.com/flexbox-truncated-text/ + margin-left: $spot-spacing-0_25 &_wrapped &--name white-space: normal @@ -28,6 +29,3 @@ @media screen and (max-width: $breakpoint-sm) &--name display: none - - .op-avatar + .op-principal--name - margin-left: $spot-spacing-0_5 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 e948823fd289..937b735720c0 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 @@