2
0

feat(editor): ️ Accept uploaded gif for image bubble

This commit is contained in:
Baptiste Arnaud
2022-06-25 09:40:38 +02:00
parent 55108c80e8
commit 9222fcb050
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ export const UploadButton = ({
id="file-input" id="file-input"
display="none" display="none"
onChange={handleInputChange} onChange={handleInputChange}
accept=".jpg, .jpeg, .png, .svg" accept=".jpg, .jpeg, .png, .svg, .gif"
/> />
<Button <Button
as="label" as="label"

View File

@@ -67,7 +67,7 @@ export const ImageBubble = ({ block, onTransitionEnd }: Props) => {
ref={image} ref={image}
src={url} src={url}
className={ className={
'p-4 content-opacity z-10 w-auto ' + 'p-4 content-opacity z-10 w-auto rounded-lg ' +
(isTyping ? 'opacity-0' : 'opacity-100') (isTyping ? 'opacity-0' : 'opacity-100')
} }
style={{ style={{