added CommentsCards

This commit is contained in:
srgooglo 2022-09-16 15:03:15 +02:00
parent 8a72e222d4
commit 4919682909
2 changed files with 32 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import React from "react" import React from "react"
import * as antd from "antd" import * as antd from "antd"
import { PostCard } from "components" import { PostCard, CommentsCard } from "components"
import "./index.less" import "./index.less"
@ -28,6 +28,11 @@ export default (props) => {
} }
return <div className="fullPost"> return <div className="fullPost">
<div className="postWrapper">
<PostCard data={data} fullmode /> <PostCard data={data} fullmode />
</div> </div>
<div className="commentsWrapper">
<CommentsCard post_id={data._id} />
</div>
</div>
} }

View File

@ -1,3 +1,28 @@
.fullPost { .fullPost {
display: flex; display: flex;
flex-direction: row;
width: 100%;
height: 100vh;
overflow: hidden;
.postWrapper {
height: 100vh;
width: 100%;
margin: 0 10px;
}
.commentsWrapper {
max-width: 600px;
min-width: 400px;
width: 40%;
height: 100vh;
overflow: scroll;
margin: 0 10px;
}
} }