Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 3 additions & 5 deletions src/renderer/components/avatars/AvatarWithFallback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type React from 'react';
import { useState } from 'react';

import { FeedPersonIcon, MarkGithubIcon } from '@primer/octicons-react';
import { Avatar, Stack, Text } from '@primer/react';
import { Avatar, Stack, Truncate } from '@primer/react';

import { type Link, Size } from '../../types';
import type { UserType } from '../../typesGitHub';
Expand Down Expand Up @@ -34,7 +34,6 @@ export const AvatarWithFallback: React.FC<IAvatarWithFallback> = ({
align="center"
gap="condensed"
data-testid="avatar"
className="truncate"
>
{!src || isBroken ? (
isNonHuman ? (
Expand All @@ -52,10 +51,9 @@ export const AvatarWithFallback: React.FC<IAvatarWithFallback> = ({
/>
)}
{name && (
// TODO add truncation logic for long names
<Text className="block truncate flex-shrink overflow-ellipsis">
<Truncate title={name} inline maxWidth={280}>
{name}
</Text>
</Truncate>
)}
</Stack>
);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading