Increase embed height

Scrolling is not allowed in Discourse oneboxes, so make sure all the content will fit
This commit is contained in:
David Taylor
2019-06-19 22:23:41 +01:00
committed by GitHub
parent 85a835ed0d
commit 7683dc37ff

View File

@@ -66,10 +66,10 @@ class EventOembed(generic.View):
full_url = "{0}://{1}{2}".format(request.scheme, request.META['HTTP_HOST'], embed_url) full_url = "{0}://{1}{2}".format(request.scheme, request.META['HTTP_HOST'], embed_url)
data = { data = {
'html': '<iframe src="{0}" frameborder="0" width="100%" height="250"></iframe>'.format(full_url), 'html': '<iframe src="{0}" frameborder="0" width="100%" height="350"></iframe>'.format(full_url),
'version': '1.0', 'version': '1.0',
'type': 'rich', 'type': 'rich',
'height': '250' 'height': '350'
} }
json = simplejson.JSONEncoderForHTML().encode(data) json = simplejson.JSONEncoderForHTML().encode(data)