chat: never wrap timestamps

fixes urbit/landscape#884
This commit is contained in:
James Acklin 2021-06-07 16:40:38 -04:00
parent 50e788825f
commit 4edaafe8e2
2 changed files with 4 additions and 1 deletions

View File

@ -163,12 +163,13 @@ export const MessageAuthor = ({
>
{copyDisplay}
</Text>
<Text flexShrink={0} fontSize={0} gray>
<Text whiteSpace='nowrap' flexShrink={0} fontSize={0} gray>
{timestamp}
</Text>
<Text
flexShrink={0}
fontSize={0}
whiteSpace='nowrap'
gray
ml={2}
display={['none', hovering ? 'block' : 'none']}
@ -205,6 +206,7 @@ export const Message = React.memo(({
top='2px'
lineHeight="tall"
fontSize={0}
whiteSpace='nowrap'
gray
>
{timestamp}

View File

@ -115,6 +115,7 @@ export default function Author(props: AuthorProps & PropFunc<typeof Box>): React
stamp={stamp}
fontSize={0}
time={time}
whiteSpace='nowrap'
ml={2}
color={unread ? 'blue' : 'gray'}
/>