make the unread message banner on a single line

pull/2191/head
Audric Ackermann 3 years ago
parent e853f57e6b
commit 551fc4e2d7
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -6,16 +6,20 @@ import { ScrollToLoadedMessageContext } from './SessionMessagesListContainer';
const LastSeenBarContainer = styled.div`
padding-bottom: 35px;
margin-inline-start: 10rem;
margin-inline-end: 10rem;
max-width: 300px;
align-self: center;
padding-top: 28px;
overflow: hidden;
display: flex;
flex-direction: row;
align-items: center;
`;
const LastSeenBar = styled.div`
width: 100%;
height: 2px;
background-color: var(--color-last-seen-indicator);
flex-grow: 1;
min-width: 60px;
flex-shrink: 0;
`;
const LastSeenText = styled.div`
@ -25,6 +29,8 @@ const LastSeenText = styled.div`
letter-spacing: 0.3px;
text-transform: uppercase;
text-align: center;
flex-shrink: 0;
margin-inline: 1rem;
color: var(--color-last-seen-indicator);
`;
@ -50,9 +56,10 @@ export const SessionLastSeenIndicator = (props: { messageId: string }) => {
return (
<LastSeenBarContainer id="unread-indicator">
<LastSeenBar>
<LastSeenText>{window.i18n('unreadMessages')}</LastSeenText>
</LastSeenBar>
<LastSeenBar />
<LastSeenText>{window.i18n('unreadMessages')}</LastSeenText>
<LastSeenBar />
</LastSeenBarContainer>
);
};

Loading…
Cancel
Save