Skip to content

Commit

Permalink
fix: prevent video from overflowing or having no width (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCupela authored Apr 13, 2022
1 parent 5439779 commit d8d1730
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/styles/Attachment.scss
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
}

&--media {
max-width: 300px;
width: 300px;
}

&-card {
Expand Down
13 changes: 10 additions & 3 deletions src/styles/Thread.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,18 @@
.str-chat__message:first-of-type .str-chat__message-inner {
margin-left: unset;
margin-right: unset;
width: 100%;
}

.str-chat__message-attachment.str-chat__message-attachment--file {
border-radius: var(--border-radius-md);
border-bottom: 1px solid var(--grey-whisper);
.str-chat__message-attachment.str-chat__message-attachment {
&--file {
border-radius: var(--border-radius-md);
border-bottom: 1px solid var(--grey-whisper);
}

&--media {
width: 100%;
}
}

.quoted-message {
Expand Down

0 comments on commit d8d1730

Please sign in to comment.