Skip to content

ref: Introduce a few style improvements #94904

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

priscilawebdev
Copy link
Member

@priscilawebdev priscilawebdev commented Jul 4, 2025

Note

Tested everything and believe me - it looks great! Unfortunately, due to issues with dev-ui I can't provide before and after screenshots.

Contributes to https://linear.app/getsentry/issue/TET-614/attachments-add-support-for-newer-file-formats-such-as-heic

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 4, 2025
return (
<Container className={className}>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we use PanelItem here, in the modal, the image contains padding and it shouldn't. This component should contain img only element and no wrappers

{t('Your browser does not support the video tag.')}
</video>
</PanelItem>
<video
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here.

@@ -35,8 +36,7 @@ export function InlineEventAttachment({
);
}

const AttachmentPreviewWrapper = styled('div')`
const AttachmentPreviewWrapper = styled(PanelItem)`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PanelItem should instead be used here where we are using a Panel

@@ -187,9 +187,10 @@ const AttachmentComponentWrapper = styled('div')`
& > video {
max-width: 100%;
max-height: calc(100vh - 300px);
width: auto;
width: 100%;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixing this for videos

height: auto;
object-fit: contain;
border-radius: ${p => p.theme.borderRadius};
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks better with border-radius, aligning with the panel with data below it

@priscilawebdev priscilawebdev marked this pull request as ready for review July 4, 2025 10:29
@priscilawebdev priscilawebdev requested a review from a team as a code owner July 4, 2025 10:29
@priscilawebdev priscilawebdev requested review from a team July 4, 2025 10:29
Base automatically changed from priscila/feat/attachments/add-more-video-types to master July 4, 2025 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant