Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
przemvs committed Jan 23, 2024
1 parent bd32a4a commit 3278746
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/media/MediaEmbeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const _createIFrameContainer = (options?: Partial<IFrameOptions>): string => {
};

options = {...defaults, ...options};
const iFrameContainer = `<iframe class="${options.type}" width="{1}" height="{2}" src="{3}" frameborder="{4}"{5}></iframe>`;
const iFrameContainer = `<div class="{0}"><iframe class="${options.type}" width="{1}" height="{2}" src="{3}" frameborder="{4}"{5}></iframe></div>`;

if (!options.video) {
options.allowfullscreen = '';
Expand Down
4 changes: 4 additions & 0 deletions src/style/content/conversation/message-list.less
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@
width: 100%;
max-width: calc(@conversation-max-width - var(--conversation-message-sender-width));
height: fit-content;

.text:has(> .iframe-container) {
margin-right: 0;
}
}

.text {
Expand Down

0 comments on commit 3278746

Please sign in to comment.