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

responsive fixes for chat #5587

Merged
merged 3 commits into from
Dec 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions app/chat/templates/embed.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,35 @@
</head>
<body class="{{ active }} bg-lightblue g-font-muli">
<div class="container-fluid header dash px-md-0">
{% include 'shared/top_nav.html' with class='d-md-flex' %}
{% include 'home/nav.html' %}
</div>
<style type="text/css">

@media only screen and (max-width : 320px) {
.chatWrapper {
height: 76vh !important;
}

.chatWrapper iframe {
height: 92vh !important;
}
}

.chatWrapper {
position: relative;
padding-bottom: 39%; /* 16:9 */
padding-top: 25px;
height: 100%;
position: absolute;
left:0;
right:0;
}
.chatWrapper iframe {
position: absolute;
top: 0;
position: fixed;
left: 0;
width: 100%;
height: 100%;
height: 93vh;
}
</style>
<div class="chatWrapper">
<iframe frameborder="0" src="{{ chat_url }}" allowfullscreen></iframe>
</div>
{% include 'shared/footer.html' %}
{% include 'shared/analytics.html' %}
{% include 'shared/footer_scripts.html' with slim=1 %}
<script src="{% static "v2/js/lib/popper.min.js" %}"></script>
Expand Down