fix canvas and buttons on smaller screens

This commit is contained in:
Reimar 2025-10-10 13:32:33 +02:00
parent 0f16965ed9
commit b04506bfc8
2 changed files with 10 additions and 5 deletions

View File

@ -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>

View File

@ -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 {