Skip to content

Commit 2de96a8

Browse files
authored
fix: improve system message layout and avatar consistency (#1061)
* fix: improve system message layout and avatar consistency - Add flex-wrap to message header for proper text wrapping - Move system action text to separate line using CSS order - Make avatar sizes consistent across all message types - Remove conditional avatar sizing for system messages * Added the avatar size back to original size and keep the username truncation fix * fix: prevent username truncation in system messages and add tooltip for long action text --------- Co-authored-by: dodaa08 <dodaa08@users.noreply.github.com>
1 parent adfd0ee commit 2de96a8

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

packages/react/src/views/Message/Message.styles.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,8 @@ export const getMessageHeaderStyles = (theme) => {
179179
font-size: 0.875rem;
180180
font-weight: 700;
181181
line-height: 1.25rem;
182-
overflow: hidden;
183-
text-overflow: ellipsis;
184182
white-space: nowrap;
185-
flex-shrink: 1;
183+
flex-shrink: 0;
186184
`,
187185

188186
userName: css`
@@ -191,10 +189,8 @@ export const getMessageHeaderStyles = (theme) => {
191189
letter-spacing: 0rem;
192190
font-size: 0.875rem;
193191
line-height: 1.25rem;
194-
overflow: hidden;
195-
text-overflow: ellipsis;
196192
white-space: nowrap;
197-
flex-shrink: 1;
193+
flex-shrink: 0;
198194
`,
199195

200196
userRole: css`

packages/react/src/views/Message/MessageHeader.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ const MessageHeader = ({
165165
css={styles.userActions}
166166
className={appendClassNames('ec-message-header-useractions')}
167167
style={{ marginLeft: '2px' }}
168+
title={userActions()}
168169
>
169170
{userActions()}
170171
</Box>

0 commit comments

Comments
 (0)