mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 12:52:26 +00:00
redesign DM profile pane UI with split view and avatars
- Update AppShell.js to split view into Conversations and Message History. - Rename sidebar title to "Conversations". - Update MessageThread.js to pass avatar URLs to bubbles. - Update MessageBubble.js to render avatars and use flex layout for alignment. - Update CSS to style message rows, avatars, and bubbles. - Ensure peak animations match hashtag strip timing (600ms/800ms).
This commit is contained in:
1 parent
7ec337ab3d
commit
5eab37905d
7 files changed
+616
-298
No files matched your search
+28
-3
@@ -5312,8 +5312,33 @@
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.dm-message-row {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
gap: var(--space-xs);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.dm-message-row--incoming {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.dm-message-row--outgoing {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.dm-message-avatar {
|
||||
width: var(--space-xl);
|
||||
height: var(--space-xl);
|
||||
flex-shrink: 0;
|
||||
border-radius: var(--radius-full);
|
||||
object-fit: cover;
|
||||
background-color: var(--surface-sunken);
|
||||
border: var(--border-width-hairline) solid var(--border-subtle);
|
||||
}
|
||||
|
||||
.dm-message-bubble {
|
||||
max-width: 85%;
|
||||
max-width: 75%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2xs);
|
||||
@@ -5325,14 +5350,14 @@
|
||||
}
|
||||
|
||||
.dm-message-bubble--incoming {
|
||||
align-self: flex-start;
|
||||
border-bottom-left-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.dm-message-bubble--outgoing {
|
||||
align-self: flex-end;
|
||||
background: var(--color-accent);
|
||||
color: var(--color-white);
|
||||
border-color: var(--color-accent-strong);
|
||||
border-bottom-right-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.dm-message-bubble--outgoing .dm-message-bubble__meta,
|
||||
|
||||
Reference in new issue
Block a user