Skip to content

Commit 6a5b452

Browse files
kazup01Davy-c
authored andcommitted
Fix comment edit UI
1 parent 68156e4 commit 6a5b452

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

src/cloud/components/Comments/CommentInput.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ const InputContainer = styled.div`
232232
display: flex;
233233
position: relative;
234234
margin-bottom: ${({ theme }) => theme.sizes.spaces.md}px;
235-
padding: 0 ${({ theme }) => theme.sizes.spaces.df}px;
236235
237236
.comment__input__send_button {
238237
position: absolute;

src/cloud/components/Comments/CommentManager.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ function CommentManager({
8787
users={usersOrEmpty}
8888
updateComment={updateComment}
8989
/>
90-
</div>
91-
<div className={'thread__list__container__create__thread'}>
92-
<CommentInput
90+
<CommentInput
9391
placeholder={'Comment...'}
9492
onSubmit={async (comment) => {
9593
await createThread({ comment })
@@ -221,15 +219,15 @@ const Container = styled.div`
221219
flex-direction: column-reverse;
222220
scrollbar-width: thin;
223221
margin-bottom: ${({ theme }) => theme.sizes.spaces.df}px;
222+
padding: 0 ${({ theme }) => theme.sizes.spaces.df}px;
224223
225224
.thread__content__back_button {
226-
margin: ${({ theme }) => theme.sizes.spaces.df}px;
225+
margin: ${({ theme }) => theme.sizes.spaces.df}px 0;
227226
}
228227
229228
& .comment__list {
230229
& > div {
231230
margin-bottom: ${({ theme }) => theme.sizes.spaces.df}px;
232-
padding: 0 ${({ theme }) => theme.sizes.spaces.df}px;
233231
}
234232
235233
&:hover {
@@ -279,10 +277,7 @@ const Container = styled.div`
279277
flex: 1;
280278
height: 100%;
281279
overflow-y: auto;
282-
}
283-
284-
.thread__list__container__create__thread {
285-
margin-top: ${({ theme }) => theme.sizes.spaces.df}px;
280+
padding 0 ${({ theme }) => theme.sizes.spaces.df}px;;
286281
}
287282
`
288283

src/cloud/components/Comments/ThreadList.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ function ThreadList({
4848

4949
const Container = styled.div`
5050
& > div {
51-
padding: 0 ${({ theme }) => theme.sizes.spaces.df}px;
5251
&:hover {
5352
background-color: ${({ theme }) => theme.colors.background.secondary};
5453
}

0 commit comments

Comments
 (0)