diff --git a/ts/components/conversation/Image.tsx b/ts/components/conversation/Image.tsx
index b1a81c417..15d409af0 100644
--- a/ts/components/conversation/Image.tsx
+++ b/ts/components/conversation/Image.tsx
@@ -88,6 +88,8 @@ export const Image = (props: Props) => {
style={{
maxHeight: `${height}px`,
maxWidth: `${width}px`,
+ minHeight: `${height}px`,
+ minWidth: `${width}px`,
}}
data-attachmentindex={attachmentIndex}
>
@@ -116,6 +118,8 @@ export const Image = (props: Props) => {
style={{
maxHeight: `${height}px`,
maxWidth: `${width}px`,
+ minHeight: `${height}px`,
+ minWidth: `${width}px`,
width: forceSquare ? `${width}px` : '',
height: forceSquare ? `${height}px` : '',
}}
diff --git a/ts/components/conversation/SessionQuotedMessageComposition.tsx b/ts/components/conversation/SessionQuotedMessageComposition.tsx
index 32606b300..41d8ded6d 100644
--- a/ts/components/conversation/SessionQuotedMessageComposition.tsx
+++ b/ts/components/conversation/SessionQuotedMessageComposition.tsx
@@ -1,4 +1,4 @@
-import React, { useCallback } from 'react';
+import React from 'react';
import { SessionIcon, SessionIconButton } from '../icon';
import styled from 'styled-components';
import { useDispatch, useSelector } from 'react-redux';
@@ -8,6 +8,8 @@ import { getAlt, isAudio } from '../../types/Attachment';
import { AUDIO_MP3 } from '../../types/MIME';
import { Flex } from '../basic/Flex';
import { Image } from '../../../ts/components/conversation/Image';
+// tslint:disable-next-line: no-submodule-imports
+import useKey from 'react-use/lib/useKey';
const QuotedMessageComposition = styled.div`
width: 100%;
@@ -58,9 +60,11 @@ export const SessionQuotedMessageComposition = () => {
const hasAudioAttachment =
hasAttachments && attachments && attachments.length > 0 && isAudio(attachments);
- const removeQuotedMessage = useCallback(() => {
+ const removeQuotedMessage = () => {
dispatch(quoteMessage(undefined));
- }, []);
+ };
+
+ useKey('Escape', removeQuotedMessage, undefined, []);
if (!quotedMessageProps?.id) {
return null;
diff --git a/ts/components/conversation/message/message-content/MessageContent.tsx b/ts/components/conversation/message/message-content/MessageContent.tsx
index c38e67786..5159389ce 100644
--- a/ts/components/conversation/message/message-content/MessageContent.tsx
+++ b/ts/components/conversation/message/message-content/MessageContent.tsx
@@ -219,7 +219,7 @@ export const MessageContent = (props: Props) => {
{!isDeleted && (
)}
-
+
>