Skip to content

Commit

Permalink
fix(issues): Center event attachment table text (#58126)
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper authored Oct 16, 2023
1 parent edef00f commit d4f5584
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions static/app/components/events/eventAttachments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ function EventAttachmentsContent({event, projectSlug}: EventAttachmentsProps) {
>
{attachments.map(attachment => (
<Fragment key={attachment.id}>
<Name>{attachment.name}</Name>
<FlexCenter>
<Name>{attachment.name}</Name>
</FlexCenter>
<Size>
<FileSize bytes={attachment.size} />
</Size>
Expand Down Expand Up @@ -221,12 +223,22 @@ const StyledPanelTable = styled(PanelTable)`
grid-template-columns: 1fr auto auto;
`;

const FlexCenter = styled('div')`
${p => p.theme.overflowEllipsis};
display: flex;
align-items: center;
`;

const Name = styled('div')`
${p => p.theme.overflowEllipsis};
white-space: nowrap;
`;

const Size = styled('div')`
text-align: right;
display: flex;
align-items: center;
justify-content: flex-end;
white-space: nowrap;
`;

const AttachmentPreviewWrapper = styled('div')`
Expand Down

0 comments on commit d4f5584

Please sign in to comment.