mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-28 08:58:07 +00:00
Fix Seed text field behavior
This commit is contained in:
@@ -151,9 +151,9 @@ export class AppElement extends LitElement {
|
|||||||
class="config-field seed"
|
class="config-field seed"
|
||||||
type="number"
|
type="number"
|
||||||
aria-label="Seed"
|
aria-label="Seed"
|
||||||
value=${this.seed}
|
.value=${this.seed.toString()}
|
||||||
min="100"
|
min="1"
|
||||||
max="10000"
|
max="99999"
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
class="seed-refresh"
|
class="seed-refresh"
|
||||||
@@ -194,5 +194,5 @@ export class AppElement extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function randomSeed(): number {
|
function randomSeed(): number {
|
||||||
return Math.round(Math.random() * 5000);
|
return Math.round(Math.random() * 99999);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user