Skip to content

fix(share): render comment panel as full-width overlay on mobile view…#191

Open
Vrindakr3300 wants to merge 1 commit into
Techiebutler:mainfrom
Vrindakr3300:fix/share-mobile-comment-panel
Open

fix(share): render comment panel as full-width overlay on mobile view…#191
Vrindakr3300 wants to merge 1 commit into
Techiebutler:mainfrom
Vrindakr3300:fix/share-mobile-comment-panel

Conversation

@Vrindakr3300

Copy link
Copy Markdown

Summary

Fixes #187. On mobile viewports (< 768px), the comment panel in both single-asset and folder share viewers now renders as a full-width overlay sheet over the media player instead of competing for horizontal space as a fixed 360px flex sibling.

Changes

  • Single-asset share viewer (apps/web/app/share/[token]/page.tsx):
    • Added relative positioning to the main flex container.
    • Updated ShareRightPanel styling to w-full absolute inset-y-0 right-0 z-20 md:static md:w-[360px] md:inset-auto.
    • Removed dead code component FolderAssetViewer.
  • Folder share viewer (apps/web/components/share/folder-share-viewer.tsx):
    • Added relative positioning to ShareReviewInner main flex container.
    • Updated sidebar comment panel container styling to w-full absolute inset-y-0 right-0 z-20 md:static md:w-[360px] md:inset-auto.
  • Changelog: Added entry under ## [Unreleased] -> ### Fixed.

Testing

  • Backend tests pass (docker compose -f docker-compose.dev.yml exec -w /workspace api python -m pytest apps/api/tests/ -q)
  • Frontend tests + build pass (pnpm --filter web test && pnpm --filter web build)
  • Tested manually in browser

Checklist

  • CHANGELOG.md entry added under ## [Unreleased] (for user-facing changes)

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.

Share viewer: comment panel should be a full-width sheet on mobile, not a fixed 360px column

1 participant