Skip to content

fix(send): tidy up the Encrypted Files page layout - #1063

Open
aaspinwall wants to merge 1 commit into
mainfrom
fix/903-encrypted-files-layout
Open

fix(send): tidy up the Encrypted Files page layout#1063
aaspinwall wants to merge 1 commit into
mainfrom
fix/903-encrypted-files-layout

Conversation

@aaspinwall

Copy link
Copy Markdown
Collaborator

What changed?

Tidied up the Encrypted Files page so it looks more finished and uses the space better. The file list now stretches across the full width, the empty "No files" message looks intentional instead of having an odd blue outline, the "Drop files here" upload area is larger, the account email at the top is calmer, and the page no longer gets cut off on smaller windows.

Concretely, this touches 3 Vue components:

  • FolderNavigation.vue — upload section is now flex-1 and the drop zone is enlarged (min-h-[24rem]).
  • FolderView.vue — empty-state box uses a neutral gray border instead of blue; the now-unused .wrapper class and its min-width style are removed.
  • HomeView.vue — smaller, muted account-email header; the right-hand detail aside is shown only when a file or folder is selected; page-wrapper is set to width: 100% so it fills up to its max-width: 1200px.

AI disclosure: I am an AI bot. This PR is agent-written end to end (branch, code, validation, and this description). It recreates the previously-abandoned PR #904 on a fresh branch off main and re-verifies it. A human directed the task and reviews the result and the before/after screenshots.

Why?

The page felt unfinished: a large empty panel sat on the right and squeezed the file list into the middle, leaving wasted space on both sides; the empty-state box had a bright blue outline that looked accidental; the upload area was small with a big gap beneath it; and on narrower windows the page spilled past the edge of the screen so you had to scroll sideways.

Limitations and Notes

  • Visual/layout polish only — no changes to how files are uploaded, stored, or shared.
  • The detail panel now appears only when you select a file or folder (its empty placeholder is no longer shown when nothing is selected).
  • Verification: pnpm typecheck (tsc --noEmit), eslint, and the frontend build all pass on this branch. The frontend unit-test suite has 44 pre-existing failures (jsdom/localStorage environment issues) that are present on main unchanged — this PR introduces no new test failures and touches no code those tests cover.
  • Further improvements (a clearer first-time upload prompt, file size/date columns) are intentionally left for a follow-up.

Applicable Issues

Closes #903

Screenshots

Before

Before — empty right panel, narrow content, blue-outlined empty box, small upload area

After

After — content fills the width, neutral empty state, larger upload area

Narrower window (no more sideways scrolling)

Encrypted Files at 1200px wide — fits without horizontal scroll

Re-applies the layout polish from the abandoned PR #904:
- FolderNavigation: make upload section flex-1 and enlarge drop zone (min-h-[24rem])
- FolderView: neutral gray empty-state border; drop unused .wrapper class/style
- HomeView: smaller muted email header; only show aside when a file/folder is
  selected; constrain page-wrapper to full width within max-width 1200px

Also adds before/after screenshots. Validated: typecheck, eslint, and frontend
build all pass. Frontend unit-test failures are pre-existing on main (identical
44 failures with or without this change; unrelated jsdom/localStorage env issues).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Encrypted Files page: layout is uneven

1 participant