mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added CommentCreator
This commit is contained in:
parent
6b26762faa
commit
4439b6693c
13
packages/app/src/components/CommentCreator/index.jsx
Normal file
13
packages/app/src/components/CommentCreator/index.jsx
Normal file
@ -0,0 +1,13 @@
|
||||
import React from "react"
|
||||
import * as antd from "antd"
|
||||
|
||||
import "./index.less"
|
||||
|
||||
export default (props) => {
|
||||
return <div className="commentCreator">
|
||||
<antd.Input.TextArea
|
||||
placeholder="Write a comment..."
|
||||
autoSize={{ minRows: 2, maxRows: 5 }}
|
||||
/>
|
||||
</div>
|
||||
}
|
22
packages/app/src/components/CommentCreator/index.less
Normal file
22
packages/app/src/components/CommentCreator/index.less
Normal file
@ -0,0 +1,22 @@
|
||||
.commentCreator {
|
||||
display: flex;
|
||||
|
||||
flex-direction: column;
|
||||
|
||||
align-items: right;
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
.ant-input {
|
||||
background-color: var(--background-color-accent) !important;
|
||||
|
||||
border: none !important;
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
.ant-btn {
|
||||
width: fit-content;
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user