mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-08-28 17:01:18 +00:00
FIX - use full-width DarkChat conversation cards
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -1836,7 +1836,6 @@ onBeforeUnmount(() => {
|
||||
:key="conversation.id"
|
||||
link
|
||||
link-component="button"
|
||||
contacts
|
||||
strong-title="auto"
|
||||
:title="conversation.peer.alias"
|
||||
:subtitle="preview(conversation)"
|
||||
|
||||
Reference in New Issue
Block a user