Commit 102bfe9e authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch '355857-pj-glavatar-commit-item' into 'master'

Resolve avatar size in commit item

See merge request gitlab-org/gitlab!84412
parents c7f0883f ea2de212
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
:link-href="authorUrl" :link-href="authorUrl"
:img-src="authorAvatar" :img-src="authorAvatar"
:img-alt="authorName" :img-alt="authorName"
:img-size="40" :img-size="32"
class="avatar-cell d-none d-sm-block" class="avatar-cell d-none d-sm-block"
/> />
</div> </div>
......
...@@ -80,7 +80,7 @@ describe('diffs/components/commit_item', () => { ...@@ -80,7 +80,7 @@ describe('diffs/components/commit_item', () => {
const imgElement = avatarElement.find('img'); const imgElement = avatarElement.find('img');
expect(avatarElement.attributes('href')).toBe(commit.author.web_url); expect(avatarElement.attributes('href')).toBe(commit.author.web_url);
expect(imgElement.classes()).toContain('s40'); expect(imgElement.classes()).toContain('s32');
expect(imgElement.attributes('alt')).toBe(commit.author.name); expect(imgElement.attributes('alt')).toBe(commit.author.name);
expect(imgElement.attributes('src')).toBe(commit.author.avatar_url); expect(imgElement.attributes('src')).toBe(commit.author.avatar_url);
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment