The Grand Potentate
Well-known member
This is clearly out of my wheel house so I defer to you to do what is best.I don't think there's a way to do that in CSS. I can limit the height of an embed using max-height but it will not adjust its width.
This is clearly out of my wheel house so I defer to you to do what is best.I don't think there's a way to do that in CSS. I can limit the height of an embed using max-height but it will not adjust its width.
hmm, ok. Would that be an option?@Slind I don't think GitHub offers a ready-made way to embed those, do they? I think that's something that needs to be developed using their API.
Would this be an option? http://embed.ly/code?url=https://github.com/s9e/XenForoMediaBBCodes/issues/10Only for someone who wants to spend a couple of days doing it. That's not something that I would support as part of this extension.
@media (max-width: 450px)
{
[data-s9e-mediaembed="instagram"]
{
max-width: 400px !important;
}
}
bbcode which appears to have triggered it:ErrorException: A non-numeric value encountered - library/s9e/MediaBBCodes.php:1413
[MEDIA=youtube]id=6GMOTrIjVao;m=1;s=[/MEDIA]
Code:[MEDIA=youtube]id=6GMOTrIjVao;m=1;s=[/MEDIA]
It was part of a quoted section of the post, so I don't have the original content for that.Do you still have the original URL that produced that BBCode? I'm interested to find why the s= value is empty. If you want a quick fix, you can replace it with "s=0" I think.
Errors are muted when generating a dynamic template to avoid type juggling warnings on PHP 7.1.
Sadly - and confusingly - this does not fix the issue on iOS.@Gene I looked into the too-wide-Instagram thing but I have nothing to report. I haven't had time to look into the issue with whitespace at the bottom.
Until this is resolved I recommend that you edit your EXTRA.css template and limit the Instagram embed's width with a media query such as this one:
Code:@media (max-width: 450px) { [data-s9e-mediaembed="instagram"] { max-width: 400px !important; } }
We use essential cookies to make this site work, and optional cookies to enhance your experience.