fix canvas and buttons on smaller screens
This commit is contained in:
parent
0f16965ed9
commit
b04506bfc8
@ -54,7 +54,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button id="run-button">🏃 Run</button>
|
<div>
|
||||||
|
<button id="run-button">🏃 Run</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
11
style.css
11
style.css
@ -56,18 +56,18 @@ section *:last-child {
|
|||||||
div#buttons {
|
div#buttons {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
flex: row;
|
flex: row;
|
||||||
justify-content: space-between;
|
|
||||||
align-items: flex-start;
|
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#buttons > * {
|
div#buttons > * {
|
||||||
width: 100%;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#buttons > * > button {
|
div#buttons button {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.column {
|
.column {
|
||||||
@ -78,10 +78,13 @@ div#buttons > * > button {
|
|||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
gap: 32px;
|
gap: 32px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#canvas-area {
|
#canvas-area {
|
||||||
background-color: black;
|
background-color: black;
|
||||||
|
aspect-ratio: 480 / 360;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#console-section {
|
#console-section {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user