Skip to content

Commit 6fdced8

Browse files
ellipsis & red point
1 parent b3b71e5 commit 6fdced8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pages/ListPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
v-if="store.history[person.username]">{{ time(store.history[person.username].at(-1).time) }}</span></div>
1313
<div class="row justify-between">
1414
<span v-if="store.history[person.username]"
15-
style="color:#808080">{{ store.history[person.username].at(-1).content }}</span>
15+
style="color:#808080;width: 60vw" class="ellipsis">{{ store.history[person.username].at(-1).content }}</span>
1616
<div style="background: red;border-radius: 100px" class="q-px-sm text-white q-mr-md" v-if="store.unread[person.username]">{{store.unread[person.username]}}</div>
1717
</div>
1818
</div>

src/stores/check.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const useCheckStore = defineStore('check', () => {
3030
history.value[key] = [...history.value[key], ...res.data.message[key]];
3131
if (!unread.value[key])
3232
unread.value[key] = 0;
33-
if (res.data.message[key][0].sender===info.value.username)
33+
if (res.data.message[key][0].sender!==info.value.username)
3434
unread.value[key]+=res.data.message[key].length;
3535
LocalStorage.set('history', history.value)
3636
if (!order.value) order.value = {};

0 commit comments

Comments
 (0)