Skip to content

Commit 52d28f6

Browse files
authored
Merge pull request #11 from GetStream/file-attachment-angular-fix
Fix file attachment display in Angular SDK
2 parents bda81d4 + 14af303 commit 52d28f6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/styles/Message.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -920,12 +920,12 @@
920920
padding: 0 var(--xs-p);
921921
}
922922

923-
&:first-of-type {
923+
&:first-of-type:not(.str-chat-angular__message-attachment-file-single) {
924924
border-radius: var(--border-radius) var(--border-radius) 0 0;
925925
border-bottom: transparent;
926926
}
927927

928-
&:last-of-type {
928+
&:last-of-type:not(.str-chat-angular__message-attachment-file-single) {
929929
border-top-color: transparent;
930930
border-radius: 0 0 var(--border-radius) calc(var(--border-radius-sm) / 2);
931931

@@ -938,7 +938,7 @@
938938
}
939939
}
940940

941-
.str-chat__message-attachment-file--item {
941+
.str-chat__message-attachment-file--item:not(.str-chat-angular__message-attachment-file-single) {
942942
border-radius: 0;
943943
}
944944

@@ -951,10 +951,10 @@
951951
.str-chat__message-attachment--file {
952952
background: var(--grey-gainsboro);
953953

954-
&:last-of-type {
954+
&:last-of-type:not(.str-chat-angular__message-attachment-file-single) {
955955
border-radius: 0 0 calc(var(--border-radius-sm) / 2) var(--border-radius);
956956

957-
&:first-of-type {
957+
&:first-of-type:not(.str-chat-angular__message-attachment-file-single) {
958958
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2)
959959
var(--border-radius);
960960
}

0 commit comments

Comments
 (0)