mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-25 07:38:24 +00:00
Improve embedding style
This commit is contained in:
@@ -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="350"></iframe>'.format(full_url),
|
'html': '<iframe src="{0}" frameborder="0" width="100%" height="250"></iframe>'.format(full_url),
|
||||||
'version': '1.0',
|
'version': '1.0',
|
||||||
'type': 'rich',
|
'type': 'rich',
|
||||||
'height': '350'
|
'height': '250'
|
||||||
}
|
}
|
||||||
|
|
||||||
json = simplejson.JSONEncoderForHTML().encode(data)
|
json = simplejson.JSONEncoderForHTML().encode(data)
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -149,16 +149,19 @@ ins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
html.embedded{
|
html.embedded{
|
||||||
min-height:100%;
|
display: flex;
|
||||||
display: table;
|
flex-direction: column;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
body{
|
body{
|
||||||
padding:0;
|
padding:0;
|
||||||
display: table-cell;
|
|
||||||
vertical-align: middle;
|
|
||||||
width:100%;
|
width:100%;
|
||||||
background:none;
|
background:none;
|
||||||
|
overflow: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
.embed_container{
|
.embed_container{
|
||||||
|
|||||||
Reference in New Issue
Block a user