From 904bc637359317570e865668c8d08c13de5055db Mon Sep 17 00:00:00 2001 From: "Leon.Schmidt" Date: Thu, 13 Aug 2026 21:33:06 +0200 Subject: [PATCH] FIX - use full-width DarkChat conversation cards --- frontend/src/views/apps/DarkChatApp.contract.test.ts | 10 ++++++++++ frontend/src/views/apps/DarkChatApp.vue | 1 - 2 files changed, 10 insertions(+), 1 deletion(-) 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)"