Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avatars now display with a circular mask #16916

Merged
merged 2 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions extensions/jira/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Jira Changelog

## [Avatars now display with a circular mask] - 2025-02-08
- To be consistent with avatars with initials, the profile pictures now show with a circular mask.

## [Add ability to configuring Git branch name format] - 2025-01-09
- Implemented the ability to configure the Git branch name format in the extension settings.

Expand Down
4 changes: 2 additions & 2 deletions extensions/jira/src/helpers/avatars.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Icon } from "@raycast/api";
import { Icon, Image } from "@raycast/api";
import { getAvatarIcon } from "@raycast/utils";

import { Project } from "../api/projects";
Expand All @@ -9,7 +9,7 @@ export function getUserAvatar(user?: User | null) {

if (!user.avatarUrls) return getAvatarIcon(user.displayName);

return user.avatarUrls["32x32"];
return { source: user.avatarUrls["32x32"], mask: Image.Mask.Circle };
}

export function getProjectAvatar(project: Project) {
Expand Down
Loading