Expand browser editor runtime and LED simulation workflows.

Add Docker deployment support, richer Selenium/LED pattern tests, in-browser diagnostics, responsive UI improvements, and 16x16 panel simulation tooling to speed iteration and hardware-style prototyping.

Made-with: Cursor
This commit is contained in:
2026-05-01 20:24:05 +12:00
parent f204109a84
commit e4c811f51d
30 changed files with 1478 additions and 60 deletions

View File

@@ -7,13 +7,14 @@
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: #f5f5f5;
height: 100vh;
height: 100dvh;
overflow: hidden;
}
.container {
display: flex;
height: 100vh;
height: 100dvh;
overflow: hidden;
}
/* Sidebar */
@@ -23,6 +24,7 @@ body {
color: white;
display: flex;
flex-direction: column;
min-height: 0;
}
.sidebar-header {
@@ -117,6 +119,9 @@ body {
display: flex;
flex-direction: column;
background-color: white;
min-width: 0;
min-height: 0;
overflow: hidden;
}
.editor-header {
@@ -191,15 +196,6 @@ body {
gap: 0.5rem;
}
#run-file-select {
min-width: 220px;
padding: 0.5rem 0.65rem;
border: 1px solid #cbd5e0;
border-radius: 6px;
font-size: 0.85rem;
background: white;
}
.editor-actions button {
padding: 0.5rem 1rem;
border: 1px solid #e2e8f0;
@@ -225,10 +221,28 @@ body {
background-color: #edf2f7;
}
.run-main-toggle {
display: inline-flex;
align-items: center;
gap: 0.45rem;
border: 1px solid #e2e8f0;
border-radius: 6px;
padding: 0.4rem 0.6rem;
font-size: 0.85rem;
color: #374151;
background: white;
white-space: nowrap;
}
.run-main-toggle input[type="checkbox"] {
margin: 0;
}
.editor-container {
flex: 1;
position: relative;
min-height: 0;
overflow: hidden;
}
.hidden {
@@ -350,6 +364,89 @@ body {
background: #0f172a;
}
.led-sim-panel {
border-top: 1px solid #e2e8f0;
background: #111827;
color: #e5e7eb;
padding: 0.75rem;
}
.led-sim-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.75rem;
}
.led-sim-header h3 {
margin: 0;
font-size: 0.95rem;
font-weight: 600;
}
.led-sim-actions {
display: flex;
align-items: center;
gap: 0.4rem;
}
.led-sim-actions button {
padding: 0.3rem 0.65rem;
border: 1px solid #374151;
background: #1f2937;
color: #e5e7eb;
border-radius: 6px;
cursor: pointer;
font-size: 0.8rem;
}
.led-sim-actions button:hover:not(:disabled) {
background: #243244;
}
.led-sim-actions button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.led-meta {
margin-top: 0.5rem;
color: #9ca3af;
font-size: 0.82rem;
}
.led-grid {
margin-top: 0.6rem;
display: flex;
flex-wrap: wrap;
overflow-x: hidden;
overflow-y: auto;
gap: 8px;
width: 100%;
max-height: 132px;
padding: 0.1rem 0 0.2rem;
}
.led-grid.panel-mode {
display: grid;
grid-template-columns: repeat(16, minmax(0, 24px));
grid-auto-rows: 24px;
justify-content: start;
align-content: start;
gap: 6px;
max-height: 470px;
overflow: auto;
}
.led {
width: 24px;
height: 24px;
min-width: 24px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.45);
}
.console-header {
padding: 0.5rem 0.75rem;
font-size: 0.85rem;
@@ -445,14 +542,106 @@ body {
/* Responsive design */
@media (max-width: 768px) {
body {
height: 100dvh;
overflow: hidden;
}
.container {
flex-direction: column;
height: 100dvh;
overflow: hidden;
}
.sidebar {
width: 250px;
width: 100%;
max-height: 30vh;
min-height: 170px;
}
.sidebar-header {
padding: 0.7rem 0.8rem;
}
.file-tree {
min-height: 100px;
}
.main-content {
min-height: 0;
}
.editor-header {
padding: 0.65rem;
flex-wrap: wrap;
gap: 0.55rem;
align-items: stretch;
}
.file-info {
width: 100%;
justify-content: space-between;
}
.mode-toggle {
order: 3;
}
.editor-actions {
width: 100%;
order: 4;
flex-wrap: wrap;
}
.editor-actions button {
flex: 1 1 100px;
}
.run-main-toggle {
width: 100%;
justify-content: flex-start;
flex: 1 1 100%;
}
.tabs {
padding: 0.3rem 0.35rem;
}
.tab-title {
max-width: 150px;
}
.editor-container {
min-height: 46vh;
}
.cm-editor {
font-size: 13px;
}
.modal-content {
width: 90%;
margin: 20% auto;
}
.led-grid {
max-height: 120px;
}
.led-sim-header {
flex-wrap: wrap;
align-items: center;
}
.led-sim-actions {
width: 100%;
justify-content: flex-start;
flex-wrap: wrap;
}
.console-container {
height: 180px;
}
}
/* Scrollbar styling */