feat(editor): ⚡️ Accept uploaded gif for image bubble
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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={{
|
||||||
|
|||||||
Reference in New Issue
Block a user