mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
better image thumbs on comments
This commit is contained in:
parent
4ed2957cb4
commit
a6434399ba
4 changed files with 17 additions and 4 deletions
|
@ -27,7 +27,9 @@ const Comment: FC<IProps> = ({ comment, is_empty, is_loading, className, photo,
|
|||
{comment.files && comment.files.length > 0 && (
|
||||
<div className={styles.images}>
|
||||
{comment.files.map(file => (
|
||||
<ImageUpload thumb={getURL(file.url)} />
|
||||
<div>
|
||||
<img src={getURL(file.url)} />
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
|
|
|
@ -7,9 +7,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
@import 'flexbin/flexbin.scss';
|
||||
|
||||
.images {
|
||||
padding: 10px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
|
||||
column-gap: $grid_line;
|
||||
|
||||
@include flexbin(150px, 10px);
|
||||
|
||||
img {
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue