소스 검색

fix(chat) Make the name fit the chat bubble

factor2
robertpin 2 년 전
부모
커밋
e56c7070c2
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3
    2
      react/features/chat/components/web/ChatMessage.tsx

+ 3
- 2
react/features/chat/components/web/ChatMessage.tsx 파일 보기

@@ -23,7 +23,7 @@ interface IProps extends AbstractProps {
23 23
 const styles = (theme: Theme) => {
24 24
     return {
25 25
         chatMessageWrapper: {
26
-            maxWidth: '100%'
26
+            maxWidth: 'calc(100% - 40px)' // 100% - avatar and margin
27 27
         },
28 28
 
29 29
         chatMessage: {
@@ -62,7 +62,8 @@ const styles = (theme: Theme) => {
62 62
         replyWrapper: {
63 63
             display: 'flex',
64 64
             flexDirection: 'row' as const,
65
-            alignItems: 'center'
65
+            alignItems: 'center',
66
+            maxWidth: '100%'
66 67
         },
67 68
 
68 69
         messageContent: {

Loading…
취소
저장