Skip to content

Mini embed renders with an overflowing play button #349

Description

@ebrelsford

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions