mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixes for audio and image block
This commit is contained in:
parent
6ebdd62f67
commit
794318ed80
3 changed files with 30 additions and 19 deletions
|
@ -42,7 +42,7 @@ const CommentContent: FC<IProps> = ({ comment }) => {
|
|||
)}
|
||||
|
||||
{groupped.image && groupped.image.length > 0 && (
|
||||
<div className={styles.block}>
|
||||
<div className={classnames(styles.block, styles.block_image)}>
|
||||
<div className={styles.images}>
|
||||
{groupped.image.map(file => (
|
||||
<div key={file.id}>
|
||||
|
@ -58,7 +58,7 @@ const CommentContent: FC<IProps> = ({ comment }) => {
|
|||
{groupped.audio && groupped.audio.length > 0 && (
|
||||
<>
|
||||
{groupped.audio.map(file => (
|
||||
<div className={classnames(styles.block, styles.audio_block)} key={file.id}>
|
||||
<div className={classnames(styles.block, styles.block_audio)} key={file.id}>
|
||||
<AudioPlayer file={file} />
|
||||
|
||||
<div className={styles.date}>{getPrettyDate(comment.created_at)}</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue