Skip to content

Commit ddb5b33

Browse files
authored
fix(issues): Allow a wider screenshot modal (#93866)
1 parent 4dd52a3 commit ddb5b33

File tree

1 file changed

+7
-5
lines changed
  • static/app/components/events/eventTagsAndScreenshot/screenshot

1 file changed

+7
-5
lines changed

static/app/components/events/eventTagsAndScreenshot/screenshot/modal.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,17 +193,19 @@ export default function ScreenshotModal({
193193
}
194194

195195
const AttachmentComponentWrapper = styled('div')`
196-
& > * {
197-
padding: 0;
198-
border: none;
196+
& > img,
197+
& > video {
198+
max-width: 100%;
199199
max-height: calc(100vh - 300px);
200-
box-sizing: border-box;
200+
width: auto;
201+
height: auto;
202+
object-fit: contain;
201203
}
202204
`;
203205

204206
export const modalCss = css`
205207
width: auto;
206208
height: 100%;
207-
max-width: 700px;
209+
max-width: min(90vw, 1500px);
208210
margin-top: 0 !important;
209211
`;

0 commit comments

Comments
 (0)