Skip to content

Commit dad0dfc

Browse files
committed
(UI) replace unread dot by bold text
1 parent 48e3f7e commit dad0dfc

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,7 @@ styles="{
260260
room: {
261261
colorUsername: '#0a0a0a',
262262
colorMessage: '#67717a',
263-
colorTimestamp: '#a2aeb8',
264-
colorNewDot: '#1976d2'
263+
colorTimestamp: '#a2aeb8'
265264
},
266265
267266
emoji: {

src/ChatWindow/RoomsList.vue

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
<span v-if="room.lastMessage.seen">
6060
<svg-icon name="checkmark" class="icon-check" />
6161
</span>
62-
<span v-if="room.lastMessage.new" class="dot-new"></span>
6362
<span>{{ room.lastMessage.content }}</span>
6463
</div>
6564
</div>
@@ -262,15 +261,7 @@ input {
262261
263262
.message-new {
264263
color: var(--chat-room-color-username);
265-
}
266-
267-
.dot-new {
268-
height: 8px;
269-
width: 8px;
270-
background-color: var(--chat-room-color-new-dot);
271-
border-radius: 50%;
272-
display: inline-block;
273-
margin: 0 5px 0 0;
264+
font-weight: 500;
274265
}
275266
276267
.text-date {

src/themes/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ export const defaultThemeStyles = {
7878
room: {
7979
colorUsername: '#0a0a0a',
8080
colorMessage: '#67717a',
81-
colorTimestamp: '#a2aeb8',
82-
colorNewDot: '#1976d2'
81+
colorTimestamp: '#a2aeb8'
8382
},
8483

8584
emoji: {
@@ -187,8 +186,7 @@ export const defaultThemeStyles = {
187186
room: {
188187
colorUsername: '#fff',
189188
colorMessage: '#6c7278',
190-
colorTimestamp: '#6c7278',
191-
colorNewDot: '#1976d2'
189+
colorTimestamp: '#6c7278'
192190
},
193191

194192
emoji: {
@@ -306,7 +304,6 @@ export const cssThemeVars = ({
306304
'--chat-room-color-username': room.colorUsername,
307305
'--chat-room-color-message': room.colorMessage,
308306
'--chat-room-color-timestamp': room.colorTimestamp,
309-
'--chat-room-color-new-dot': room.colorNewDot,
310307

311308
// emoji
312309
'--chat-emoji-bg-color': emoji.background,

0 commit comments

Comments
 (0)