-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
base: master
Are you sure you want to change the base?
Conversation
return ( | ||
<Container className={className}> |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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)` |
There was a problem hiding this comment.
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%; |
There was a problem hiding this comment.
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}; |
There was a problem hiding this comment.
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
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