Skip to content

Commit 33cf9aa

Browse files
authored
Make boostlook docs full-width (boostorg#1818)
1 parent ce56022 commit 33cf9aa

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

core/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ def _fully_modernize_content(self, content):
605605
show_footer=False,
606606
show_navbar=False,
607607
)
608+
context["full_width"] = True
608609
return render_to_string("docsiframe.html", context, request=self.request)
609610

610611

templates/docsiframe.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
{% extends "base.html" %}
2+
3+
{% block main_content_wrapper %}
4+
{% if full_width %}
5+
<div>
6+
{% else %}
7+
<div class="max-w-7xl md:px-3 mx-auto transition-all">
8+
{% endif %}
9+
10+
{% endblock %}
11+
212
{% block content %}
313
<iframe
414
{% if iframe_url %}

0 commit comments

Comments
 (0)