mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +00:00
added CommentsCards
This commit is contained in:
parent
8a72e222d4
commit
4919682909
@ -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>
|
||||||
}
|
}
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user