Skip to content

Commit

Permalink
Update clock display (#271)
Browse files Browse the repository at this point in the history
Move and expand clockface
  • Loading branch information
netalondon authored Apr 10, 2024
1 parent e08af6f commit a3d6491
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions web/src/pages/chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,28 +302,28 @@ export const Chip = () => {
showCannotTestError();
return;
}
clockActions.toggle();
clockActions.reset();
}}
onBlur={recompile}
style={{ maxWidth: "initial" }}
disabled={!state.sim.clocked}
>
<Trans>Clock</Trans>:{"\u00a0"}
<Clockface />
<Trans>Reset</Trans>
</button>
<button
onClick={() => {
if (state.sim.invalid) {
showCannotTestError();
return;
}
clockActions.reset();
clockActions.toggle();
}}
onBlur={recompile}
style={{ maxWidth: "initial" }}
style={{ minWidth: "7em", textAlign: "start" }}
disabled={!state.sim.clocked}
>
<Trans>Reset</Trans>
<Trans>Clock</Trans>:{"\u00a0"}
<Clockface />
</button>
</fieldset>
);
Expand Down

0 comments on commit a3d6491

Please sign in to comment.