diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-26 04:22:58 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-26 04:22:58 -0700 |
commit | 6da65a3818d164bfea4fcec48c8f694888ae356e (patch) | |
tree | b556d9649e0153fb714143ea1c0c32586aea8ecb | |
parent | 0d2fc32b01d90796ffee0fa3ac8fb6beb4fa3c1a (diff) | |
download | dartboat-6da65a3818d164bfea4fcec48c8f694888ae356e.tar.gz dartboat-6da65a3818d164bfea4fcec48c8f694888ae356e.tar.xz |
web: fix prompt not clearing before bot throw
-rw-r--r-- | web/dartboat_wasm.c | 4 | ||||
-rw-r--r-- | web/static/style.css | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/web/dartboat_wasm.c b/web/dartboat_wasm.c index 322127a..a083780 100644 --- a/web/dartboat_wasm.c +++ b/web/dartboat_wasm.c @@ -533,6 +533,7 @@ void prompt_handle_submit() return; char *str = prompt_get(); + prompt_handle_clear(); if (*str) { if (pm == PM_VISIT) user_visit(atoi(str)); @@ -543,7 +544,6 @@ void prompt_handle_submit() } free(str); - prompt_handle_clear(); } void prompt_handle_submit_rem() @@ -552,10 +552,10 @@ void prompt_handle_submit_rem() return; char *str = prompt_get(); + prompt_handle_clear(); if (*str) user_visit_to_rem(atoi(str)); free(str); - prompt_handle_clear(); } void prompt_handle_undo() diff --git a/web/static/style.css b/web/static/style.css index e43a0c1..6a1b8c2 100644 --- a/web/static/style.css +++ b/web/static/style.css @@ -74,7 +74,6 @@ div#oi { div#info { position: relative; - grid-column: 1 / span 3; font-size: clamp(1.5vh, 2vw, 2vh); |