fix(topbar): fix overflow pill popup clipped and hidden behind pdf viewer

Remove overflow-hidden from the main flex row — the inner min-w-0 flex-1
overflow-hidden title container already handles truncation. Add relative z-10
to the topbar wrapper so it stacks above the pdf viewer. Pill is now hidden
below md (matching the chip row) and shows +N at md, +N weitere at lg+.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-02 11:36:41 +02:00
parent e94f43264c
commit 9dd35999e0
2 changed files with 11 additions and 13 deletions

View File

@@ -109,16 +109,16 @@ let mobileMenuOpen = $state(false);
</a>
{/snippet}
<div data-topbar class="border-b border-line bg-surface shadow-sm">
<div data-topbar class="relative z-10 border-b border-line bg-surface shadow-sm">
<!-- Main row -->
<div class="flex h-[75px] shrink-0 items-center overflow-hidden xs:h-[88px]">
<div class="flex h-[75px] shrink-0 items-center xs:h-[88px]">
<!-- Accent bar -->
<div class="h-full w-[3px] shrink-0 bg-primary"></div>
<!-- Back link — 44×44px touch target -->
<a
href="/"
aria-label="Zurück zur Dokumentenliste"
aria-label={m.topbar_back_label()}
class="group -ml-0.5 flex h-11 w-11 shrink-0 items-center justify-center rounded-full transition-colors hover:bg-muted focus-visible:ring-2 focus-visible:ring-primary"
>
<img
@@ -150,12 +150,7 @@ let mobileMenuOpen = $state(false);
<!-- Chip row — desktop only, hidden on small screens to make room for buttons -->
<div class="mx-3 hidden min-w-0 shrink-0 md:block">
<PersonChipRow
sender={doc.sender}
receivers={receivers}
abbreviated={true}
extraCount={extraCount}
/>
<PersonChipRow sender={doc.sender} receivers={receivers} abbreviated={true} extraCount={0} />
</div>
<!-- Overflow pill button (desktop) + status dot -->
@@ -206,7 +201,7 @@ let mobileMenuOpen = $state(false);
<button
type="button"
onclick={() => (mobileMenuOpen = !mobileMenuOpen)}
aria-label="Weitere Aktionen"
aria-label={m.topbar_more_actions()}
aria-haspopup="true"
aria-expanded={mobileMenuOpen}
class="flex h-9 w-9 items-center justify-center rounded border border-line bg-muted transition hover:bg-accent focus-visible:ring-2 focus-visible:ring-primary"