Skip to content

fix(frontend): full-bleed layout, sticky top band and constrained scrolling#34

Merged
theodubus merged 2 commits into
feat/graphic_selection_devfrom
codex/add-redact-selection-feature
Feb 14, 2026
Merged

fix(frontend): full-bleed layout, sticky top band and constrained scrolling#34
theodubus merged 2 commits into
feat/graphic_selection_devfrom
codex/add-redact-selection-feature

Conversation

@theodubus

Copy link
Copy Markdown
Owner

Motivation

  • Make the top band and main workspace span the full viewport width with no vertical gap so the UI touches the screen edges.
  • Keep the top band fixed in place when the user scrolls, and prevent the whole page from scrolling.
  • Constrain scrolling to the PDF viewer column only so the right tools column remains static and only the PDF content can scroll.

Description

  • Update global layout and scrolling by changing frontend/src/styles.css to set html/body/#root to full size with overflow: hidden, make .topBand sticky, remove gutters and vertical gap, and allow only the viewer column to scroll while the tools column is non-scrollable.
  • Rework frontend/src/App.tsx to a top-band + two-column structure, add a hidden shared file input and drag-and-drop upload area, and wire a file-change button into HeaderBar.
  • Enhance viewer and selection plumbing in frontend/src/components/PdfViewer.tsx to compute per-page scales, emit selection rectangles via a selectionchange handler, and render preview rectangles; add selection lifecycle handling in the rules UI.
  • Propagate selection rects to the backend by adding RectInput and including rects in the payload in frontend/src/api.ts, and add UI/locale strings and small UX refinements across rules components (RulesSection, RulesList, EditRuleModal).

Testing

  • Built the frontend with cd frontend && npm run build and the production build completed successfully.
  • Started the dev server with cd frontend && npm run dev -- --host 0.0.0.0 --port 4173 and Vite reported readiness.
  • Captured a Playwright screenshot validating the full-bleed + sticky header layout and viewer-only scroll behavior (artifact created).

Codex Task

@theodubus
theodubus merged commit 0a5b557 into feat/graphic_selection_dev Feb 14, 2026
2 checks passed
@theodubus
theodubus deleted the codex/add-redact-selection-feature branch February 14, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant