Skip to content

Commit

Permalink
fe - fix spotify embed overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
slatinsky committed Aug 14, 2024
1 parent 25c110c commit a35a14a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dcef/frontend/src/lib/message/MessageEmbed.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
</div>
{/if}
{:else if spotifyId}
<iframe src={`https://open.spotify.com/embed/track/${spotifyId}`} frameborder="0" sandbox="allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts" style="width: 400px; height: 80px;"></iframe>
<iframe class="spotify-iframe" src={`https://open.spotify.com/embed/track/${spotifyId}`} frameborder="0" sandbox="allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts" style="width: 400px; height: 80px;"></iframe>
{:else if embed.video && embed.title === "" && embed.description === ""}
<MessageVideo attachment={embed.video} />
{:else}
Expand Down Expand Up @@ -253,6 +253,10 @@
}
}
.spotify-iframe {
max-width: 100%;
}
.main-wrapper {
padding: 2px 0;
}
Expand Down

0 comments on commit a35a14a

Please sign in to comment.