1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

fixed paddings

This commit is contained in:
Fedor Katurov 2019-12-03 12:30:40 +07:00
parent aed888e894
commit ab898cc40c
2 changed files with 9 additions and 2 deletions

View file

@ -50,8 +50,9 @@ const CommentContent: FC<IProps> = memo(({ comment, can_edit, onDelete }) => {
return (
<div className={styles.wrap}>
{comment.text && (
<Group className={styles.block}>
<Group className={classnames(styles.block, styles.block_text)}>
{lock}
{formatCommentText(path(['user', 'username'], comment), comment.text).map(
(block, key) =>
COMMENT_BLOCK_RENDERERS[block.type] &&
@ -64,6 +65,8 @@ const CommentContent: FC<IProps> = memo(({ comment, can_edit, onDelete }) => {
{groupped.image && groupped.image.length > 0 && (
<div className={classnames(styles.block, styles.block_image)}>
{lock}
<div className={styles.images}>
{groupped.image.map(file => (
<div key={file.id}>

View file

@ -57,7 +57,7 @@
padding-bottom: 10px;
box-sizing: border-box;
flex-direction: column;
padding: $gap 0;
// padding: $gap 0;
&:first-child {
border-top-right-radius: $radius;
@ -93,6 +93,10 @@
}
}
.block_text {
padding: $gap 0;
}
.date {
position: absolute;
bottom: 0;