Fix rendering of GIFs

This commit is contained in:
Fedor Indutny 2021-06-24 12:05:27 -07:00 committed by GitHub
parent a053c395a4
commit a7799a74c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 11 deletions

View file

@ -4,7 +4,6 @@
import React, { useRef, useState, useEffect } from 'react';
import classNames from 'classnames';
import { Blurhash } from 'react-blurhash';
import formatFileSize from 'filesize';
import { LocalizerType, ThemeType } from '../../types/Util';
import { Spinner } from '../Spinner';
@ -170,7 +169,7 @@ export const GIF: React.FC<Props> = props => {
if (isNotDownloaded && attachment.fileSize) {
fileSize = (
<div className="module-image--gif__filesize">
{formatFileSize(attachment.fileSize || 0)} · GIF
{attachment.fileSize} · GIF
</div>
);
}