|
57 | 57 |
|
58 | 58 | <body class="h-full page"> |
59 | 59 | <div id="app-root" class="flex flex-col h-full min-h-0"> |
60 | | - <!-- FULL-WIDTH TOOLBAR (spans from left edge to right edge) --> |
| 60 | + <!-- Toolbar --> |
61 | 61 | <div class="toolbar"> |
62 | 62 | <div class="flex items-baseline gap-2 min-w-0"> |
63 | 63 | <div class="tool-title">Pyxel Code Maker</div> |
|
68 | 68 | >, a retro game engine for Python. |
69 | 69 | </div> |
70 | 70 | </div> |
71 | | - <!-- Control groups wrapper (takes remaining horizontal space, right-aligned) --> |
| 71 | + <!-- Controls --> |
72 | 72 | <div class="flex flex-1 justify-start items-center mt-0.5 min-w-0"> |
73 | | - <!-- Left group: Load / Save --> |
| 73 | + <!-- Load / Save --> |
74 | 74 | <div class="flex items-center gap-2"> |
75 | 75 | <button |
76 | 76 | id="load-button" |
|
89 | 89 | Save |
90 | 90 | </button> |
91 | 91 | </div> |
92 | | - <!-- Center group: Code / Res (no explicit center) --> |
| 92 | + <!-- Code / Res toggle --> |
93 | 93 | <div class="flex items-center px-4"> |
94 | 94 | <div class="seg" role="group"> |
95 | 95 | <button |
|
114 | 114 | </button> |
115 | 115 | </div> |
116 | 116 | </div> |
117 | | - <!-- Right group: Run --> |
| 117 | + <!-- Run --> |
118 | 118 | <div class="flex items-center gap-2"> |
119 | 119 | <button |
120 | 120 | id="run-button" |
|
129 | 129 | </div> |
130 | 130 | </div> |
131 | 131 |
|
132 | | - <!-- CONTENT AREA BELOW TOOLBAR: LEFT/RIGHT SPLIT --> |
| 132 | + <!-- Main content --> |
133 | 133 | <div id="main-splitter" class="flex flex-1 min-h-0"> |
134 | | - <!-- LEFT SIDE (editor/resource panes only) --> |
| 134 | + <!-- Left pane --> |
135 | 135 | <div |
136 | 136 | id="left-pane" |
137 | 137 | class="flex flex-col min-h-0" |
138 | 138 | style="width: 50%; min-width: 200px; max-width: 80%" |
139 | 139 | > |
140 | | - <!-- Code pane --> |
| 140 | + <!-- Code editor --> |
141 | 141 | <div id="code-pane" class="flex flex-1 min-h-0"> |
142 | 142 | <div id="code-editor" class="w-full h-full"></div> |
143 | 143 | </div> |
144 | 144 |
|
145 | | - <!-- Resource pane --> |
| 145 | + <!-- Resource editor --> |
146 | 146 | <div id="resource-pane" class="hidden flex flex-1 min-h-0"> |
147 | 147 | <iframe |
148 | 148 | id="resource-editor" |
|
154 | 154 | </div> |
155 | 155 | </div> |
156 | 156 |
|
157 | | - <!-- Divider: draggable vertical bar (thicker, no gap) --> |
| 157 | + <!-- Splitter --> |
158 | 158 | <div |
159 | 159 | id="splitter-handle" |
160 | 160 | class="z-50 relative w-3 cursor-col-resize select-none" |
|
168 | 168 | title="Drag to resize" |
169 | 169 | ></div> |
170 | 170 |
|
171 | | - <!-- RIGHT SIDE (preview only) --> |
| 171 | + <!-- Right pane --> |
172 | 172 | <div |
173 | 173 | class="flex flex-col flex-1 min-h-0" |
174 | 174 | style="background-color: var(--pyxel-background-color)" |
|
0 commit comments