Improve embedding style

This commit is contained in:
David Taylor
2019-06-20 00:56:11 +01:00
parent 7e06b5a162
commit b269069b6a
4 changed files with 20 additions and 9 deletions

View File

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