Skip to content

Commit

Permalink
Merge pull request #310 from AppQuality/fix-comment-cut
Browse files Browse the repository at this point in the history
🐛 fix(chat): remove unnecessary text in chat message
  • Loading branch information
cannarocks authored Jan 26, 2024
2 parents a3a07a9 + fa06963 commit da69ca7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/stories/chat/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const defaultArgs: EditorStoryArgs = {
},
},
{
message: `Hi <mention data-type="mention" data-mention-id="1" data-mention-name="John Doe">@John Doe</mention>, I'm a comment too but with <strong>bold</strong> askdlhfksadhjfkljafshbcfkjsdhbkjdhfksjdfhabfshdbkfvhksdajhfbvhldsjfvdjshflkvdsbjhfjkvskfhbvasjhfksjbfvsdbvkjshvbkfasjhvfksjhfbkfbvksjhjvfshjvbsdhvdbvskjsdbhfkvsjbfjkvbsdfhwrap`,
message: `Hi <mention data-type="mention" data-mention-id="1" data-mention-name="John Doe">@John Doe</mention>, I'm a comment too but with <strong>bold</strong>`,
date: " | 27 dic. 2023 | 12:00",
author: {
name: "Marco B.",
Expand Down
11 changes: 7 additions & 4 deletions src/stories/chat/parts/containers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,17 @@ export const EditorContainer = styled(FauxInput)<{ editable: boolean }>`
: `
margin-left: ${theme.space.sm};
padding: ${`${theme.space.xxs} ${theme.space.xs}`};
.ProseMirror {
min-height: 36px;
outline: none;
max-height: 210px;
overflow-y: auto;
}
`}
.ProseMirror {
background-color: transparent;
min-height: 36px;
outline: none;
max-height: 210px;
overflow-y: auto;
${editorStyle}
}
Expand Down

0 comments on commit da69ca7

Please sign in to comment.