Skip to content

Commit 22fa80e

Browse files
committed
notebook resonspive ipad/tablet fixes
1 parent d0c0b82 commit 22fa80e

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

wasm/notebook/src/index.ejs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<div class="d-flex">
1515
<div class="header item-center">RustPython 🐍 😱 🤘</div>
1616
<div>
17-
<a target="_blank" class="mr-px-5 text-black" href="https://github.com/RustPython/RustPython/tree/master/wasm/notebook">how this works</a>
17+
<a target="_blank" class="d-md-none mr-px-5 text-black" href="https://github.com/RustPython/RustPython/tree/master/wasm/notebook">how this works</a>
1818
<a target="_blank" class="text-black" href="https://github.com/RustPython/"> github</a>
1919
</div>
2020
</div>
@@ -30,7 +30,7 @@
3030
</div>
3131

3232
<div class="nav-bar-links d-flex">
33-
<a href="#" id="split-view" class="bg-light mr-px-5 text-black">split view</a>
33+
<a href="#" id="split-view" class="d-md-none bg-light mr-px-5 text-black">split view</a>
3434
<a href="#" id="default-view" class="bg-light mr-px-5 text-black">default view</a>
3535
<a href="#" id="reader-view" class="bg-light text-black">reader view</a>
3636
</div>

wasm/notebook/src/style.css

+7-2
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ ul.list-inline li {
172172
input[type='url'] {
173173
border: 1px solid black;
174174
border-radius: 0px;
175-
width: 85%;
175+
width: 75%;
176176
font-size: 1rem;
177177
padding: 4px;
178178
font-family: monospace;
@@ -241,12 +241,17 @@ input[type='url'] {
241241
overflow: auto;
242242
}
243243

244-
@media screen and (max-width: 700px) {
244+
@media screen and (max-width: 768px) {
245245
.box {
246246
width: 70%;
247247
}
248248

249249
.popup {
250250
width: 70%;
251251
}
252+
253+
.d-md-none {
254+
display: none;
255+
}
256+
252257
}

0 commit comments

Comments
 (0)