Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mini embed renders with an overflowing play button #349

Open
ebrelsford opened this issue Dec 19, 2024 · 0 comments
Open

Mini embed renders with an overflowing play button #349

ebrelsford opened this issue Dec 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ebrelsford
Copy link

Mini embed renders with an overflowing play button

Issue found of: Dec 18 2024

Steps to reproduce:

Embed a track player with height = 20px to get the mini player.

I won't give the <iframe> code I'm using because this is a private track, but you can see the result is broken in the SoundCloud site itself:

image

Expected behaviour:

I would expect the play button not to overflow the height of the iframe. It appears to be off by 1px since adding a margin-top: -1px to .sc-media-left gets the result I would expect:

image

Actual behaviour:

As you can see in the first screenshot the button overflows by ~1px so it looks cut off. Unfortunately bumping the height of the iframe up by a pixel doesn't help because the mini player does not get served at 21px, so you get something like this:

image

@dpreussler dpreussler added the bug Something isn't working label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants