mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
added imagecaching
This commit is contained in:
parent
88f50e3348
commit
1320f0851f
16 changed files with 43 additions and 35 deletions
|
@ -10,6 +10,7 @@ import append from 'ramda/es/append';
|
|||
import reduce from 'ramda/es/reduce';
|
||||
import { AudioPlayer } from '~/components/media/AudioPlayer';
|
||||
import classnames from 'classnames';
|
||||
import { PRESETS } from '~/constants/urls';
|
||||
|
||||
interface IProps {
|
||||
comment: IComment;
|
||||
|
@ -46,7 +47,7 @@ const CommentContent: FC<IProps> = memo(({ comment }) => {
|
|||
<div className={styles.images}>
|
||||
{groupped.image.map(file => (
|
||||
<div key={file.id}>
|
||||
<img src={getURL(file)} alt={file.name} />
|
||||
<img src={getURL(file, PRESETS['300'])} alt={file.name} />
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue