mirror of
https://github.com/slatinsky/DiscordChatExporter-frontend.git
synced 2025-05-11 10:27:00 +02:00
fe - fix spotify embed overflow
This commit is contained in:
parent
25c110c794
commit
a35a14a949
1 changed files with 5 additions and 1 deletions
|
@ -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}
|
||||
|
@ -253,6 +253,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
.spotify-iframe {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.main-wrapper {
|
||||
padding: 2px 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue