diff --git a/frontend/src/views/apps/DarkChatApp.contract.test.ts b/frontend/src/views/apps/DarkChatApp.contract.test.ts index 4de18fa..211babe 100644 --- a/frontend/src/views/apps/DarkChatApp.contract.test.ts +++ b/frontend/src/views/apps/DarkChatApp.contract.test.ts @@ -27,6 +27,16 @@ describe('DarkChatApp Sky UI contract', () => { expect(inbox.match(/@click="openProfile"/g)).toHaveLength(1) }) + it('uses the full conversation card width', () => { + const conversationStart = source.indexOf( + 'v-for="conversation in filteredConversations"', + ) + const conversationEnd = source.indexOf('', conversationStart) + const conversation = source.slice(conversationStart, conversationEnd) + + expect(conversation).not.toMatch(/\scontacts(?:\s|>)/) + }) + it('bottom-aligns short threads and exposes profile lifecycle actions', () => { expect(source).toContain('ref="messagesArea"') expect(source).toMatch(/\.dc-day\s*\{[^}]*margin:\s*auto 0 8px/s) diff --git a/frontend/src/views/apps/DarkChatApp.vue b/frontend/src/views/apps/DarkChatApp.vue index 5437d09..feac196 100644 --- a/frontend/src/views/apps/DarkChatApp.vue +++ b/frontend/src/views/apps/DarkChatApp.vue @@ -1836,7 +1836,6 @@ onBeforeUnmount(() => { :key="conversation.id" link link-component="button" - contacts strong-title="auto" :title="conversation.peer.alias" :subtitle="preview(conversation)"