fix ErstgespraechCard overflow on mobile, add safe-area padding for tabbar

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-13 07:50:51 +01:00
parent 07932e1844
commit 62023da94f
2 changed files with 26 additions and 19 deletions

View File

@@ -151,29 +151,33 @@ function ErstgespraechCard({
const [editing, setEditing] = useState(false);
return (
<div className="rounded-lg border p-3">
<div className="min-w-0 rounded-lg border p-3">
<button
type="button"
className="flex w-full items-center gap-3 text-left text-sm"
className="flex w-full min-w-0 items-start gap-3 text-left text-sm"
onClick={() => setExpanded(!expanded)}
>
<span className="flex-1 font-medium">
{erstgespraech.therapeut_name}
{erstgespraech.therapeut_stadt
? ` (${erstgespraech.therapeut_stadt})`
: ""}
</span>
<span className="flex items-center gap-2">
{erstgespraech.diagnose && (
<Badge variant="secondary">{erstgespraech.diagnose}</Badge>
)}
{erstgespraech.dringlichkeitscode && <Badge>Dringlichkeit</Badge>}
<span className="text-xs text-muted-foreground">
{erstgespraech.sitzung_count}{" "}
{Number(erstgespraech.sitzung_count) === 1
? "Sitzung"
: "Sitzungen"}
<span className="min-w-0 flex-1">
<span className="font-medium">
{erstgespraech.therapeut_name}
{erstgespraech.therapeut_stadt
? ` (${erstgespraech.therapeut_stadt})`
: ""}
</span>
<span className="mt-1 flex flex-wrap items-center gap-1.5">
{erstgespraech.diagnose && (
<Badge variant="secondary">{erstgespraech.diagnose}</Badge>
)}
{erstgespraech.dringlichkeitscode && <Badge>Dringlichkeit</Badge>}
<span className="text-xs text-muted-foreground">
{erstgespraech.sitzung_count}{" "}
{Number(erstgespraech.sitzung_count) === 1
? "Sitzung"
: "Sitzungen"}
</span>
</span>
</span>
<span className="shrink-0 pt-0.5">
{expanded ? (
<ChevronDown className="size-4 text-muted-foreground" />
) : (

View File

@@ -29,7 +29,10 @@ export const Route = createRootRoute({
return (
<div className="flex min-h-screen flex-col bg-background text-foreground">
{!hideNav && !installed && <InstallBanner />}
<main className="mx-auto w-full max-w-2xl flex-1 px-4 pb-20 pt-6">
<main
className="mx-auto w-full max-w-2xl flex-1 px-4 pt-6"
style={{ paddingBottom: "calc(5rem + env(safe-area-inset-bottom))" }}
>
<Outlet />
</main>
{!hideNav && (