From 98b93345c2d0a3a1b2a7ddfab5eb4b3f2245ce4f Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Tue, 24 Mar 2026 16:13:33 +0100 Subject: [PATCH] add '@' character to UserHandle input in /user-settings --- src/web/pages/usersettings.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/web/pages/usersettings.rs b/src/web/pages/usersettings.rs index dbab0a6..7950845 100644 --- a/src/web/pages/usersettings.rs +++ b/src/web/pages/usersettings.rs @@ -41,8 +41,11 @@ pub async fn page(req: Request) -> Result { label for="handle" class="font-light text-neutral-500" {"Handle"} form action="/user-settings/handle" method="post" class="flex gap-2" { - input type="text" id="handle" name="handle" autocomplete="off" value={(u.handle)} - class="px-2 py-1 border border-neutral-200/25 bg-neutral-950/50 rounded"; + div class="flex items-center border border-neutral-200/25 rounded bg-neutral-950/50" { + span class="pl-2 text-neutral-500 select-none" {"@"} + input id="handle" name="handle" type="text" autocomplete="off" value={(u.handle)} + class="w-full bg-transparent pl-0.5 pr-1 py-1 outline-none"; + } button type="submit" class="px-4 py-1 border border-neutral-200/25 bg-neutral-200/5 rounded cursor-pointer hover:border-neutral-200/40" { "Save" }