File tree 3 files changed +3
-30
lines changed
3 files changed +3
-30
lines changed Original file line number Diff line number Diff line change @@ -170,9 +170,3 @@ <h3>{{ _('Navigation') }}</h3>
170
170
{% trans sphinx_version=sphinx_version|e %}Created using < a href ="https://www.sphinx-doc.org/ "> Sphinx</ a > {{ sphinx_version }}.{% endtrans %}
171
171
</ div >
172
172
{% endblock %}
173
-
174
- {% block content %}
175
- < div class ="content-wrapper ">
176
- {{ super() }}
177
- </ div >
178
- {% endblock %}
Original file line number Diff line number Diff line change @@ -150,6 +150,8 @@ div.sphinxsidebar {
150
150
line-height : 130% ;
151
151
font-size : smaller;
152
152
resize : horizontal;
153
+ min-width : 200px ;
154
+ max-width : 400px ;
153
155
}
154
156
155
157
div .sphinxsidebar h3 ,
@@ -158,7 +160,7 @@ div.sphinxsidebar h4 {
158
160
}
159
161
160
162
div .sphinxsidebarwrapper {
161
- width : 100 % ;
163
+ width : 217 px ;
162
164
box-sizing : border-box;
163
165
height : 100% ;
164
166
overflow-x : hidden;
Original file line number Diff line number Diff line change @@ -85,29 +85,6 @@ const initialiseSidebar = () => {
85
85
else if (sidebar_state === "expanded") {
86
86
expand_sidebar()
87
87
}
88
-
89
- // Add event listeners to make the sidebar resizable by dragging the edge
90
- let isResizing = false;
91
- let lastDownX = 0;
92
-
93
- sidebar.addEventListener('mousedown', (e) => {
94
- isResizing = true;
95
- lastDownX = e.clientX;
96
- });
97
-
98
- document.addEventListener('mousemove', (e) => {
99
- if (!isResizing) return;
100
-
101
- const offsetRight = document.body.offsetWidth - (e.clientX - document.body.offsetLeft);
102
- const newWidth = Math.min(Math.max(200, offsetRight), 400);
103
-
104
- sidebar.style.width = `${newWidth}px`;
105
- bodyWrapper.style.marginLeft = `${newWidth + 10}px`;
106
- });
107
-
108
- document.addEventListener('mouseup', () => {
109
- isResizing = false;
110
- });
111
88
}
112
89
113
90
if (document.readyState !== "loading") {
You can’t perform that action at this time.
0 commit comments