Skip to content
Snippets Groups Projects
Unverified Commit 668e009d authored by Alex Pennells's avatar Alex Pennells Committed by GitLab
Browse files

Merge branch 'remove-non-compliant-avatar-sizes' into 'master'

parents c71a1b55 5825a81c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1536,7 +1536,7 @@ export default class Notes {
<div class="timeline-entry-inner">
<div class="timeline-icon">
<a href="/${escape(currentUsername)}">
<img class="avatar s40" src="${currentUserAvatar}" />
<img class="avatar s32" src="${currentUserAvatar}" />
</a>
</div>
<div class="timeline-content ${discussionClass}">
Loading
Loading
Loading
Loading
@@ -67,7 +67,7 @@ $avatar-sizes: (
.avatar,
.avatar-container {
float: left;
margin-right: $gl-padding;
margin-right: $gl-padding-8;
border-radius: 50%;
 
@each $size, $size-config in $avatar-sizes {
Loading
Loading
@@ -79,8 +79,8 @@ $avatar-sizes: (
 
.avatar {
transition-property: none;
width: 40px;
height: 40px;
width: 32px;
height: 32px;
padding: 0;
background: var(--gl-background-color-subtle);
overflow: hidden;
Loading
Loading
Loading
Loading
@@ -21,6 +21,11 @@
@include media-breakpoint-up(sm) {
margin-left: 4px;
}
&.s24 {
margin-top: -2px;
margin-right: 4px;
}
}
 
.commit-committer-link,
Loading
Loading
Loading
Loading
@@ -11,14 +11,13 @@
%span.gl-hidden.sm:gl-inline= _('authored')
#{time_ago_with_tooltip(@commit.authored_date)}
%span= s_('ByAuthor|by')
= author_avatar(@commit, size: 24, has_tooltip: false)
%strong
= author_avatar(@commit, size: 24, has_tooltip: false)
= commit_author_link(@commit, avatar: true, size: 24)
= user_status(@commit.author)
- if @commit.different_committer?
%span.light= _('Committed by')
%strong
= commit_committer_link(@commit, avatar: true, size: 24)
%span.gl-text-subtle= _('Committed by')
= commit_committer_link(@commit, avatar: true, size: 24)
#{time_ago_with_tooltip(@commit.committed_date)}
 
= link_button_to _('Browse files'), project_tree_path(@project, @commit), class: 'gl-mr-3 gl-w-full sm:gl-w-auto gl-mb-3 sm:gl-mb-0'
Loading
Loading
Loading
Loading
@@ -26,7 +26,7 @@
 
%li{ class: ["commit flex-row", ("js-toggle-container" if collapsible)], id: "commit-#{commit.short_id}" }
.gl-self-start.gl-hidden.sm:gl-block
= author_avatar(commit, size: 40, has_tooltip: false)
= author_avatar(commit, size: 32, has_tooltip: false)
 
.commit-detail.flex-list.gl-flex.gl-justify-between.gl-items-center.gl-grow.gl-min-w-0
.commit-content{ data: { testid: 'commit-content' } }
Loading
Loading
Loading
Loading
@@ -49,7 +49,7 @@
%span.pipeline-id ##{generic_commit_status.pipeline.id}
%span by
- if generic_commit_status.pipeline.user
= user_avatar(user: generic_commit_status.pipeline.user, size: 20)
= user_avatar(user: generic_commit_status.pipeline.user, size: 24)
- else
%span.monospace API
 
Loading
Loading
Loading
Loading
@@ -58,7 +58,7 @@
expect(project.avatar).to receive(:local_url).twice.and_call_original
 
expect(project.avatar_path).to eq(avatar_path)
expect(project.avatar_path(size: 40)).to eq(avatar_path + "?width=40")
expect(project.avatar_path(size: 32)).to eq(avatar_path + "?width=32")
end
 
it 'handles unpersisted objects' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment