diff --git a/src/components/BotMessageWithBodyInput.tsx b/src/components/BotMessageWithBodyInput.tsx index 96ada982f..6afeef6bf 100644 --- a/src/components/BotMessageWithBodyInput.tsx +++ b/src/components/BotMessageWithBodyInput.tsx @@ -19,9 +19,14 @@ const Root = styled.span` position: relative; `; -const Sender = styled(Label)` - margin: 0 0 4px 12px; +const Sender = styled.div` + padding: 0 0 4px 12px; text-align: left; + overflow: hidden; + text-overflow: ellipsis; + width: calc( + 100% - 12px - 56px + ); // -12 for left margin and -56 for timestamp min width. `; const Content = styled.div` @@ -93,11 +98,13 @@ export default function BotMessageWithBodyInput(props: Props) { )} {displaySender && ( - - {botNickname} + + )}