Skip to content

Commit

Permalink
feat(angular): scraped video metadata displayed in attachment list (#318
Browse files Browse the repository at this point in the history
)

### 🎯 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
  • Loading branch information
szuperaz authored Nov 5, 2024
1 parent 5875c66 commit ebd48c9
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 6 deletions.
Binary file modified src/assets/icons/stream-chat-icons.eot
Binary file not shown.
4 changes: 2 additions & 2 deletions src/assets/icons/stream-chat-icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/icons/stream-chat-icons.ttf
Binary file not shown.
Binary file modified src/assets/icons/stream-chat-icons.woff
Binary file not shown.
Binary file modified src/assets/icons/stream-chat-icons.woff2
Binary file not shown.
30 changes: 28 additions & 2 deletions src/v2/styles/AttachmentList/AttachmentList-layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
margin: var(--str-chat__attachment-margin);

.str-chat__file-icon {
width: calc(var(--str-chat__spacing-px)* 30);
width: calc(var(--str-chat__spacing-px) * 30);
}

.str-chat__message-attachment-unsupported__metadata {
Expand All @@ -270,7 +270,6 @@
flex-direction: column;
align-items: flex-start;
justify-content: center;

}

.str-chat__message-attachment-unsupported__title {
Expand Down Expand Up @@ -622,4 +621,31 @@

.str-chat__attachment-list-angular-host {
min-width: 0;

.str-chat__message-attachment-card--video {
width: 100%;

a {
display: block;
width: 100%;
height: 100%;
position: relative;

.str-chat__message-attachment-card--video-play,
stream-icon-placeholder {
position: absolute;
top: 50%;
left: 0;
right: 0;
margin: auto;
transform: translateY(-50%);
width: calc(var(--str-chat__spacing-px) * 36);
height: calc(var(--str-chat__spacing-px) * 36);
}

img {
cursor: pointer;
}
}
}
}
10 changes: 9 additions & 1 deletion src/v2/styles/AttachmentList/AttachmentList-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,16 @@
}
}


.str-chat-angular__message-attachment-file-single
.str-chat__message-attachment-file--item-first-row {
color: var(--str-chat__attachment-list-color);
}

.str-chat__attachment-list-angular-host {
.str-chat__message-attachment-card--video-play {
--str-chat-icon-color: var(--str-chat__text-color);

background-color: var(--str-chat__secondary-background-color);
border-radius: var(--str-chat__border-radius-circle);
}
}
2 changes: 1 addition & 1 deletion src/v2/styles/Icon/Icon-layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
content: '\e809';
} /* '' */
.str-chat__icon--play::before {
content: '\e80a';
content: '\e814';
} /* '' */
.str-chat__icon--reaction::before {
content: '\e80b';
Expand Down

0 comments on commit ebd48c9

Please sign in to comment.