Skip to content

Commit ebd48c9

Browse files
authored
feat(angular): scraped video metadata displayed in attachment list (#318)
### 🎯 Goal _Describe why we are making this change_ ### 🛠 Implementation details _Provide a description of the implementation_ ### 🎨 UI Changes _Add relevant screenshots_ Make sure to test with both Angular and React (with both `MessageList` and `VirtualizedMessageList` components) SDKs
1 parent 5875c66 commit ebd48c9

File tree

8 files changed

+40
-6
lines changed

8 files changed

+40
-6
lines changed
36 Bytes
Binary file not shown.

src/assets/icons/stream-chat-icons.svg

Lines changed: 2 additions & 2 deletions
Loading
36 Bytes
Binary file not shown.
32 Bytes
Binary file not shown.
92 Bytes
Binary file not shown.

src/v2/styles/AttachmentList/AttachmentList-layout.scss

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@
260260
margin: var(--str-chat__attachment-margin);
261261

262262
.str-chat__file-icon {
263-
width: calc(var(--str-chat__spacing-px)* 30);
263+
width: calc(var(--str-chat__spacing-px) * 30);
264264
}
265265

266266
.str-chat__message-attachment-unsupported__metadata {
@@ -270,7 +270,6 @@
270270
flex-direction: column;
271271
align-items: flex-start;
272272
justify-content: center;
273-
274273
}
275274

276275
.str-chat__message-attachment-unsupported__title {
@@ -622,4 +621,31 @@
622621

623622
.str-chat__attachment-list-angular-host {
624623
min-width: 0;
624+
625+
.str-chat__message-attachment-card--video {
626+
width: 100%;
627+
628+
a {
629+
display: block;
630+
width: 100%;
631+
height: 100%;
632+
position: relative;
633+
634+
.str-chat__message-attachment-card--video-play,
635+
stream-icon-placeholder {
636+
position: absolute;
637+
top: 50%;
638+
left: 0;
639+
right: 0;
640+
margin: auto;
641+
transform: translateY(-50%);
642+
width: calc(var(--str-chat__spacing-px) * 36);
643+
height: calc(var(--str-chat__spacing-px) * 36);
644+
}
645+
646+
img {
647+
cursor: pointer;
648+
}
649+
}
650+
}
625651
}

src/v2/styles/AttachmentList/AttachmentList-theme.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,16 @@
534534
}
535535
}
536536

537-
538537
.str-chat-angular__message-attachment-file-single
539538
.str-chat__message-attachment-file--item-first-row {
540539
color: var(--str-chat__attachment-list-color);
541540
}
541+
542+
.str-chat__attachment-list-angular-host {
543+
.str-chat__message-attachment-card--video-play {
544+
--str-chat-icon-color: var(--str-chat__text-color);
545+
546+
background-color: var(--str-chat__secondary-background-color);
547+
border-radius: var(--str-chat__border-radius-circle);
548+
}
549+
}

src/v2/styles/Icon/Icon-layout.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
content: '\e809';
6262
} /* '' */
6363
.str-chat__icon--play::before {
64-
content: '\e80a';
64+
content: '\e814';
6565
} /* '' */
6666
.str-chat__icon--reaction::before {
6767
content: '\e80b';

0 commit comments

Comments
 (0)