Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Read marker is now a long bar
Signed-off-by: Vincent Petry <[email protected]>
  • Loading branch information
PVince81 committed Mar 8, 2021
commit 31b3c3ed28d584b33000cce2f162f12855a6ed4c
19 changes: 13 additions & 6 deletions src/components/MessagesList/MessagesGroup/Message/Message.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ the main body of the message as well as a quote.
<div v-if="isLastReadMessage"
v-observe-visibility="lastReadMessageVisibilityChanged">
<div v-if="!isLastMessage" class="new-message-marker">
<span>----- {{ t('spreed', 'Unread messages') }} -----</span>
<span>{{ t('spreed', 'Unread messages') }}</span>
</div>
</div>
</div>
Expand Down Expand Up @@ -801,14 +801,21 @@ export default {
}

.new-message-marker {
margin: 20px 0;
text-align: center;
position: relative;
margin: 40px 15px 0 -45px;
border-top: 1px solid var(--color-border);

span {
background-color: var(--color-primary-light);
color: var(--color-text-lighter);
padding: 10px 20px;
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%) translateY(-50%);
padding: 0 7px 0 7px;
text-align: center;
white-space: nowrap;

border-radius: var(--border-radius);
background-color: var(--color-main-background);
}
}

Expand Down