Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

fix(web): simplify login fields and align the footer with the grid

muterC9816ab417eb2
diff --git a/apps/web/src/app/globals.css b/apps/web/src/app/globals.css
index b65e82bd..18dfd05f 100644
--- a/apps/web/src/app/globals.css
+++ b/apps/web/src/app/globals.css
@@ -571,11 +571,11 @@ a[href][aria-disabled="true"],
}
.auth-footer {
- position: absolute;
- right: 0;
- bottom: 1.5rem;
z-index: 2;
- width: calc(100% / 2.05);
+ grid-column: 2;
+ grid-row: 1;
+ align-self: end;
+ margin-bottom: 1.5rem;
color: hsl(var(--town-muted-foreground));
font-size: 0.75rem;
text-align: center;
@@ -862,8 +862,9 @@ a[href][aria-disabled="true"],
}
.auth-footer {
- position: static;
- width: auto;
+ grid-column: 1;
+ grid-row: auto;
+ margin-bottom: 0;
}
}
diff --git a/apps/web/src/components/ui/field.tsx b/apps/web/src/components/ui/field.tsx
index fd2faafd..513b42e0 100644
--- a/apps/web/src/components/ui/field.tsx
+++ b/apps/web/src/components/ui/field.tsx
@@ -11,17 +11,13 @@ export function Field({
id,
inputClassName = "",
label,
- labelClassName = "",
- prefix,
suffix,
...props
-}: Omit<InputHTMLAttributes<HTMLInputElement>, "prefix" | "size"> & {
+}: Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
error?: string | null;
hint?: string;
inputClassName?: string;
label: string;
- labelClassName?: string;
- prefix?: ReactNode;
suffix?: ReactNode;
}) {
const generatedId = useId();
@@ -33,7 +29,7 @@ export function Field({
return (
<div className={`ui-field ${className}`}>
<label
- className={`mb-1.5 block text-sm font-medium text-foreground ${labelClassName}`}
+ className="mb-1.5 block text-sm font-medium text-foreground"
htmlFor={inputId}
>
{label}
@@ -42,15 +38,10 @@ export function Field({
<input
aria-describedby={describedBy}
aria-invalid={error ? true : undefined}
- className={`${fieldControlClassName} ${prefix ? "pl-12" : ""} ${suffix ? "pr-11" : ""} ${inputClassName}`}
+ className={`${fieldControlClassName} ${suffix ? "pr-11" : ""} ${inputClassName}`}
id={inputId}
{...props}
/>
- {prefix ? (
- <span className="pointer-events-none absolute inset-y-0 left-0 flex w-12 items-center justify-center text-muted-foreground">
- {prefix}
- </span>
- ) : null}
{suffix ? (
<span className="absolute inset-y-0 right-0 flex w-11 items-center justify-center">
{suffix}