Spaces:
Running
Running
Commit ·
e87a61a
1
Parent(s): f048ad6
Fix python project player clipping on small screens with scrollbar and responsive padding
Browse files- templates/player.html +23 -0
templates/player.html
CHANGED
|
@@ -234,6 +234,7 @@
|
|
| 234 |
background: radial-gradient(circle, #0e1222 0%, #050608 100%);
|
| 235 |
width: 100%;
|
| 236 |
height: 100%;
|
|
|
|
| 237 |
}
|
| 238 |
|
| 239 |
.screen-frame {
|
|
@@ -508,6 +509,28 @@
|
|
| 508 |
#webcam-video, #webcam-canvas {
|
| 509 |
display: none;
|
| 510 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 511 |
</style>
|
| 512 |
</head>
|
| 513 |
<body>
|
|
|
|
| 234 |
background: radial-gradient(circle, #0e1222 0%, #050608 100%);
|
| 235 |
width: 100%;
|
| 236 |
height: 100%;
|
| 237 |
+
overflow-y: auto;
|
| 238 |
}
|
| 239 |
|
| 240 |
.screen-frame {
|
|
|
|
| 509 |
#webcam-video, #webcam-canvas {
|
| 510 |
display: none;
|
| 511 |
}
|
| 512 |
+
|
| 513 |
+
/* Responsive layout for smaller heights */
|
| 514 |
+
@media (max-height: 800px) {
|
| 515 |
+
.viewport-section {
|
| 516 |
+
padding: 1.2rem;
|
| 517 |
+
}
|
| 518 |
+
.screen-frame:not(.iframe-mode) {
|
| 519 |
+
max-height: 80%;
|
| 520 |
+
}
|
| 521 |
+
.focus-prompt {
|
| 522 |
+
margin-top: 0.6rem;
|
| 523 |
+
padding: 0.35rem 1rem;
|
| 524 |
+
font-size: 0.76rem;
|
| 525 |
+
}
|
| 526 |
+
.device-section {
|
| 527 |
+
padding: 1.2rem;
|
| 528 |
+
gap: 0.8rem;
|
| 529 |
+
}
|
| 530 |
+
.terminal-section {
|
| 531 |
+
padding: 1.2rem;
|
| 532 |
+
}
|
| 533 |
+
}
|
| 534 |
</style>
|
| 535 |
</head>
|
| 536 |
<body>
|