Skip to content

Commit e0ee4a3

Browse files
committed
Add Angular specific selectors for Message and Avatar
1 parent c8fe49b commit e0ee4a3

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

src/styles/Avatar.scss

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,27 @@
4242

4343
.str-chat__message {
4444
&--me {
45-
> .str-chat__avatar {
45+
%order {
4646
order: 1;
47+
}
48+
49+
%margin {
4750
margin: 0;
4851
margin-left: var(--xs-m);
4952
}
53+
54+
> .str-chat__avatar {
55+
@extend %order;
56+
@extend %margin;
57+
}
58+
59+
> .str-chat-angular__avatar-host {
60+
@extend %order;
61+
62+
> .str-chat__avatar {
63+
@extend %margin;
64+
}
65+
}
5066
}
5167
}
5268

src/styles/Message.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,8 @@
864864
color: var(--overlay-dark);
865865
}
866866

867-
> .str-chat__avatar {
867+
> .str-chat__avatar,
868+
> .str-chat-angular__avatar-host > .str-chat__avatar {
868869
align-self: flex-end;
869870
margin-right: 0;
870871
}

0 commit comments

Comments
 (0)