Skip to content

Commit

Permalink
[twizzle/edit] Swap the puzzle name and symbol.
Browse files Browse the repository at this point in the history
I haven't figured out how get keyboard selection to ignore the symbol (using different `label` and `textContent` doesn't seem to work), so this is easier.
  • Loading branch information
lgarron committed Oct 4, 2024
1 parent 14fefd4 commit 8363c40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sites/alpha.twizzle.net/edit/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,9 @@ class ControlPane {
for (const puzzleOptInfo of puzzles) {
const option = document.createElement("option");
option.value = puzzleOptInfo.name;
option.textContent = `${puzzleOptInfo.symbol} ${supportedPuzzles[
option.textContent = `${supportedPuzzles[
puzzleOptInfo.name
].displayName()}`;
].displayName()} ${puzzleOptInfo.symbol}`;
optgroup.appendChild(option);
if (puzzleOptInfo.name === initialPuzzleName) {
option.selected = true;
Expand Down

0 comments on commit 8363c40

Please sign in to comment.