mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
comment rendering
This commit is contained in:
parent
398f44e232
commit
9531edcd19
10 changed files with 83 additions and 37 deletions
|
@ -12,13 +12,13 @@ interface IProps {
|
|||
}
|
||||
|
||||
const NodeComments: FC<IProps> = ({ comments }) => (
|
||||
<div className={styles.wrap}>
|
||||
<Filler />
|
||||
|
||||
<Group className={styles.wrap}>
|
||||
{comments.map(comment => (
|
||||
<Comment key={comment.id} comment={comment} />
|
||||
))}
|
||||
</div>
|
||||
|
||||
<Filler />
|
||||
</Group>
|
||||
);
|
||||
|
||||
export { NodeComments };
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
.wrap {
|
||||
display: flex;
|
||||
flex-direction: column-reverse !important;
|
||||
// display: flex;
|
||||
// flex-direction: column !important;
|
||||
|
||||
& > div {
|
||||
margin: ($gap / 2) 0;
|
||||
// & > div {
|
||||
// margin: ($gap / 2) 0;
|
||||
|
||||
&:last-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
// &:last-child {
|
||||
// margin-top: 0;
|
||||
// }
|
||||
|
||||
&:first-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
// &:first-child {
|
||||
// margin-bottom: 0;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue