mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
fixed flexbin props
This commit is contained in:
parent
45c935af3b
commit
c37f727aad
2 changed files with 27 additions and 6 deletions
|
@ -15,6 +15,8 @@ import * as MODAL_ACTIONS from '~/redux/modal/actions';
|
|||
import { CommentForm } from '~/components/comment/CommentForm';
|
||||
import { useShallowSelect } from '~/utils/hooks/useShallowSelect';
|
||||
import { selectNode } from '~/redux/node/selectors';
|
||||
import classNames from 'classnames';
|
||||
import 'flexbin/flexbin.scss';
|
||||
|
||||
interface IProps {
|
||||
comment: IComment;
|
||||
|
@ -84,7 +86,9 @@ const CommentContent: FC<IProps> = memo(({ comment, can_edit, onDelete, modalSho
|
|||
<div className={classnames(styles.block, styles.block_image)}>
|
||||
{menu}
|
||||
|
||||
<div className={styles.images}>
|
||||
<div
|
||||
className={classNames(styles.images, { [styles.multiple]: groupped.image.length > 1 })}
|
||||
>
|
||||
{groupped.image.map((file, index) => (
|
||||
<div key={file.id} onClick={() => modalShowPhotoswipe(groupped.image, index)}>
|
||||
<img src={getURL(file, PRESETS['600'])} alt={file.name} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue