FIX - use full-width DarkChat conversation cards

This commit is contained in:
Leon.Schmidt
2026-08-13 21:33:06 +02:00
parent 9ced2c893d
commit 904bc63735
2 changed files with 10 additions and 1 deletions
@@ -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('</SkyListItem>', 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)
-1
View File
@@ -1836,7 +1836,6 @@ onBeforeUnmount(() => {
:key="conversation.id"
link
link-component="button"
contacts
strong-title="auto"
:title="conversation.peer.alias"
:subtitle="preview(conversation)"