fixed visual bugs

This commit is contained in:
2026-01-12 23:06:00 +05:00
parent 310e4867d5
commit b081e52d6e
2 changed files with 3 additions and 3 deletions

View File

@@ -85,12 +85,12 @@ Result(bool) start_screen(Array(char) username_buf, Array(char) password_buf,
while(tim_run(FPS)){
tim_fill(tim_cell(" ", ctx.style_default.fg, ctx.style_default.bg), 0, 0, A, A);
tim_scope(A, A, 40, 14) {
tim_scope(A, A, 40, 13) {
tim_scroll(&scroll_list, 1, 1, ~1, ~1, ctx.style_default);
}
if(ctx.err_msg){
i32 below_scroll = tim->scopes[tim->scope].h/2 + 7;
i32 below_scroll = tim->scopes[tim->scope].h/2 + 6;
tim_label("ERROR: ", A, below_scroll, A, A, ctx.style_error);
tim_label(ctx.err_msg, A, below_scroll + 1, A, A, ctx.style_error);
}

View File

@@ -19,7 +19,7 @@ str validateUsername_str(str username){
if(username.len < USERNAME_SIZE_MIN || username.len > USERNAME_SIZE_MAX){
return str_from_cstr(
sprintf_malloc(
"username length (in bytes) must be >= %i and <= %i\n",
"username length (in bytes) must be >= %i and <= %i",
USERNAME_SIZE_MIN, USERNAME_SIZE_MAX
)
);