Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Unify iframe bsod layout
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ custom_css = """
|
|
51 |
height: 713px;
|
52 |
}
|
53 |
|
54 |
-
.sandbox-iframe {
|
55 |
position: absolute;
|
56 |
top: 8%;
|
57 |
left: 7%;
|
@@ -59,9 +59,10 @@ custom_css = """
|
|
59 |
height: <<HEIGHT>>px;
|
60 |
border: 4px solid #444444;
|
61 |
transform-origin: 0 0;
|
|
|
|
|
62 |
transform: scale(0.605);
|
63 |
}
|
64 |
-
|
65 |
/* Colored label for task textbox */
|
66 |
.primary-color-label label span {
|
67 |
font-weight: bold;
|
@@ -172,7 +173,7 @@ sandbox_html_template = """
|
|
172 |
<img id="bsod-image"
|
173 |
src="https://huggingface.co/datasets/mfarre/servedfiles/resolve/main/blue_screen_of_death.gif"
|
174 |
class="bsod-image"
|
175 |
-
style="display: none;
|
176 |
/>
|
177 |
</div>
|
178 |
""".replace("<<WIDTH>>", str(WIDTH+15)).replace("<<HEIGHT>>", str(HEIGHT+10))
|
|
|
51 |
height: 713px;
|
52 |
}
|
53 |
|
54 |
+
.sandbox-iframe, .bsod-image {
|
55 |
position: absolute;
|
56 |
top: 8%;
|
57 |
left: 7%;
|
|
|
59 |
height: <<HEIGHT>>px;
|
60 |
border: 4px solid #444444;
|
61 |
transform-origin: 0 0;
|
62 |
+
}
|
63 |
+
.sandbox-iframe {
|
64 |
transform: scale(0.605);
|
65 |
}
|
|
|
66 |
/* Colored label for task textbox */
|
67 |
.primary-color-label label span {
|
68 |
font-weight: bold;
|
|
|
173 |
<img id="bsod-image"
|
174 |
src="https://huggingface.co/datasets/mfarre/servedfiles/resolve/main/blue_screen_of_death.gif"
|
175 |
class="bsod-image"
|
176 |
+
style="display: none;
|
177 |
/>
|
178 |
</div>
|
179 |
""".replace("<<WIDTH>>", str(WIDTH+15)).replace("<<HEIGHT>>", str(HEIGHT+10))
|