As a user I want a focused document view with a resizable bottom panel so I can read documents, transcriptions, and discussions without sidebar clutter #62
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
User interviews found the current left sidebar too crowded. Key complaints:
The goal is a layout where the document (PDF/image) fills the full viewport and contextual content (metadata, transcription, discussion, history) is accessible via a resizable bottom panel — without causing the PDF to re-render when the panel opens or resizes.
Layout
Key behaviour
position: fixed/ fills the full space beneath the top bar at all times. The bottom panel floats over it (position: fixedat the bottom). This is the same principle as the planned annotation drawer from #60 — the PDF canvas never resizes.localStorageso it survives navigation.Top bar compact metadata row
Replace the standalone
<h1>with a two-line compact area:This keeps sender/receiver context visible without allocating a full sidebar column, and handles the "long title + many receivers" case gracefully via truncation.
Tab contents
CommentThread+ annotation comments (absorbs the planned floating drawer from #60)The
AnnotationCommentPanelthat currently lives insidePdfVieweris removed; annotation-related discussion moves to the Diskussion tab. TheannotateModestate is lifted to the page level so the Annotieren button can move to the top bar (supersedes #61).Supersedes / closes
User Journey
ANNOTATE_ALL). Annotation mode activates on the PDF. When they click an annotation, the Diskussion tab opens automatically and scrolls to the annotation thread.E2E Scenarios
Implementation notes
Component structure
Drag-to-resize
Use
pointermove/pointerupon the drag handle (touch-action: none). Store height in a$statevariable and sync tolocalStorage. Clamp betweenMIN_HEIGHT(48 px — tab bar only) andMAX_HEIGHT(80 vh).No PDF rerender
The document viewer uses
position: absolute; inset: 0within a relatively-positioned container that fills the remaining viewport below the top bar. The bottom panel isposition: fixed; bottom: 0; left: 0; right: 0. Opening / resizing the panel never changes the document viewer's bounding box.Annotation integration
annotateMode: booleanandactiveAnnotationId: string | nullare lifted fromPdfViewerto+page.svelteand passed down as$bindable()props.activeAnnotationIdand switches the panel to the Diskussion tab.data.canAnnotate && doc.contentType?.startsWith('application/pdf').