Skip to content

Commit

Permalink
feat(chat): align attachments based on user who attaches them
Browse files Browse the repository at this point in the history
  • Loading branch information
epetrow authored and Juveniel committed Jul 25, 2023
1 parent 7c92781 commit 97796b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/default/scss/chat/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,11 @@
margin: $kendo-chat-bubble-spacing 0 0;
}

.k-message-group.k-alt + .k-card-list,
.k-message-group.k-alt + kendo-chat-message-attachments.k-card-list {
align-self: flex-end;
}

.k-chat .k-card-deck {
max-width: calc(100% + #{$kendo-chat-message-list-padding-y * 2}); // prevent overflowing in the parent element
box-sizing: border-box;
Expand Down
5 changes: 5 additions & 0 deletions packages/fluent/scss/chat/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,11 @@
margin: $kendo-chat-bubble-spacing 0 0;
}

.k-message-group.k-alt + .k-card-list,
.k-message-group.k-alt + kendo-chat-message-attachments.k-card-list {
align-self: flex-end;
}

.k-chat .k-card-deck {
max-width: calc( 100% + #{ $kendo-chat-message-list-padding-y * 2 } ); // prevent overflowing in the parent element
max-width: calc( 100% + var( --kendo-chat-message-list-padding-y, #{ $kendo-chat-message-list-padding-y * 2} ) );
Expand Down

0 comments on commit 97796b6

Please sign in to comment.