diff --git a/src/app/components/message/attachment/Attachment.css.ts b/src/app/components/message/attachment/Attachment.css.ts index 4c41761..21ed324 100644 --- a/src/app/components/message/attachment/Attachment.css.ts +++ b/src/app/components/message/attachment/Attachment.css.ts @@ -9,7 +9,7 @@ export const Attachment = recipe({ borderRadius: config.radii.R400, overflow: 'hidden', maxWidth: '100%', - width: toRem(400), + // width: toRem(400), }, variants: { outlined: { @@ -31,7 +31,7 @@ export const AttachmentBox = style([ { maxWidth: '100%', maxHeight: toRem(600), - width: toRem(400), + // width: toRem(400), overflow: 'hidden', }, ]); diff --git a/src/app/organisms/room/RoomTimeline.tsx b/src/app/organisms/room/RoomTimeline.tsx index 0c74de5..56d895e 100644 --- a/src/app/organisms/room/RoomTimeline.tsx +++ b/src/app/organisms/room/RoomTimeline.tsx @@ -1100,13 +1100,13 @@ export function RoomTimeline({ room, eventId, roomInputRef, editor }: RoomTimeli if (typeof mxcUrl !== 'string') { return null; } - const height = scaleYDimension(imgInfo?.w || 400, 400, imgInfo?.h || 400); + // const height = scaleYDimension(imgInfo?.w || 400, 400, imgInfo?.h || 400); return ( ( )} {srcState.status === AsyncStatus.Success && ( - +