Skip to content

Commit

Permalink
better video visualization - fix #85
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Jun 13, 2024
1 parent 60e115e commit 4bd8ca1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion frontend/src/components/MessagesList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,15 @@ const useStyles = makeStyles((theme) => ({
borderBottomRightRadius: 8,
},

messageVideo: {
width: 250,
maxHeight: 445,
borderTopLeftRadius: 8,
borderTopRightRadius: 8,
borderBottomLeftRadius: 8,
borderBottomRightRadius: 8,
},

messageMediaSticker: {
backgroundColor: "unset",
boxShadow: "unset",
Expand Down Expand Up @@ -502,7 +511,7 @@ const MessagesList = ({ ticket, ticketId, isGroup }) => {
if (message.mediaType === "video") {
return (
<video
className={classes.messageMedia}
className={classes.messageVideo}
src={message.mediaUrl}
controls
/>
Expand Down

0 comments on commit 4bd8ca1

Please sign in to comment.