aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-06-02 09:03:57 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-06-02 09:03:57 +0200
commit17502e7e32c041761dc383a481861997aee7ad28 (patch)
tree4977f6a1efb4f173efe93afe5a4950dd4864e46a
parent800dde68388cc5145a0d90c4e8862d12fd2db523 (diff)
downloadslcl-17502e7e32c041761dc383a481861997aee7ad28.tar.gz
page.c: Display login forms as grid
While commit 1ffba8f5 fixed a wrong display of the mkdir, upload and logout forms, it did not take login forms into consideration, which must displayed as grid.
-rw-r--r--page.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/page.c b/page.c
index 1ce69a9..c080e95 100644
--- a/page.c
+++ b/page.c
@@ -35,7 +35,7 @@
"<header>\n" \
" <a href=\"" PROJECT_URL "\">" PROJECT_NAME "</a>, a suckless cloud\n" \
"</header>\n" \
- " <form action=\"/login\" method=\"post\">\n" \
+ " <form class=\"loginform\" action=\"/login\" method=\"post\">\n" \
" <label for=\"username\">Username:</label>\n" \
" <input type=\"text\" class=\"form-control\"\n" \
" id=\"username\" name=\"username\" autofocus><br>\n" \
@@ -1330,6 +1330,10 @@ int page_style(struct http_response *const r)
"{\n"
" padding: 4px;\n"
"}\n"
+ ".loginform\n"
+ "{\n"
+ " display: grid;\n"
+ "}\n"
"form, label, table, input\n"
"{\n"
" margin: auto;\n"