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

Customizing the embed (esp. scale) #35

Open
pixlpa opened this issue Apr 26, 2021 · 1 comment
Open

Customizing the embed (esp. scale) #35

pixlpa opened this issue Apr 26, 2021 · 1 comment

Comments

@pixlpa
Copy link

pixlpa commented Apr 26, 2021

I'd like to create a customized embed (using the React component). My primary interest is creating a custom box size, but exposing other style/layout CSS features to the top level component would also be really helpful.
If I understand correctly, the only way to change embed size currently is to copy the contents of components/Embed.jsx into my own custom component, since the max-height/max-width and aspect values aren't exposed to the top level props. Maybe there's a way to achieve this I haven't yet discovered?

@sammdec
Copy link
Collaborator

sammdec commented May 2, 2021

Yeah that’s correct, the easiest way is to duplicate and add your own customisations to the render component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants