Commit ea2de212 authored by Samantha Ming's avatar Samantha Ming

Resolve GlAvatar size in commit item

Update the avatar size in commit modal so it is compatible with GlAvatar
when the gl_avatar_for_all_user_avatars
feature flag is enabled.
parent 349e9ea1
......@@ -130,7 +130,7 @@ export default {
:link-href="authorUrl"
:img-src="authorAvatar"
:img-alt="authorName"
:img-size="40"
:img-size="32"
class="avatar-cell d-none d-sm-block"
/>
</div>
......
......@@ -80,7 +80,7 @@ describe('diffs/components/commit_item', () => {
const imgElement = avatarElement.find('img');
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('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