fix timer validation, make error toasts brighter

This commit is contained in:
AlecM33
2023-08-16 13:57:03 -04:00
parent 1d22aebbb9
commit e015f1baea
3 changed files with 14 additions and 13 deletions

View File

@@ -139,7 +139,7 @@ export class GameCreationStepManager {
restoreButton();
break;
case 400:
toast('Your game has invalid parameters..', 'error', true, true);
toast('Your game has invalid parameters.', 'error', true, true);
restoreButton();
break;
case 201:
@@ -331,11 +331,11 @@ export class GameCreationStepManager {
}
if (hours !== null) {
valid = hours <= PRIMITIVES.MAX_HOURS;
valid = hours > 0 && hours <= PRIMITIVES.MAX_HOURS;
}
if (minutes !== null) {
valid = minutes <= PRIMITIVES.MAX_MINUTES;
valid = minutes > 0 && minutes <= PRIMITIVES.MAX_MINUTES;
}
return valid;

View File

@@ -87,8 +87,8 @@ textarea {
}
.toast-error {
background-color: #fdaeb7;
border: 3px solid #c78a8a;
background-color: #f98e9a;
border: 3px solid #c57272;
}
.toast-neutral {
@@ -338,12 +338,13 @@ input {
border-radius: 5px;
font-family: 'signika-negative', sans-serif;
font-weight: 100;
box-shadow: 0 1px 1px rgba(0,0,0,0.11),
0 2px 2px rgba(0,0,0,0.11),
0 4px 4px rgba(0,0,0,0.11),
0 8px 8px rgba(0,0,0,0.11),
0 16px 16px rgba(0,0,0,0.11),
0 32px 32px rgba(0,0,0,0.11);
box-shadow:
0 1px 1px rgba(0,0,0,0.11),
0 2px 2px rgba(0,0,0,0.11),
0 4px 4px rgba(0,0,0,0.11),
0 8px 8px rgba(0,0,0,0.11),
0 16px 16px rgba(0,0,0,0.11),
0 32px 32px rgba(0,0,0,0.11);
left: 0;
right: 0;
width: fit-content;

View File

@@ -164,7 +164,7 @@
}
#deck-status-container {
width: 20em;
width: 25em;
max-width: 95%;
height: 20em;
overflow-y: auto;
@@ -457,7 +457,7 @@ input[type="number"] {
#role-select {
margin: 0.5em 1em 1.5em 0;
overflow-y: auto;
height: 16em;
height: 20em;
}
.default-role, .custom-role, .added-role {