Skip to content

fix: prevent layout overlap on screens narrower than 375px#498

Open
Muskan-S123 wants to merge 1 commit into
param20h:devfrom
Muskan-S123:fix/mobile-layout-375px
Open

fix: prevent layout overlap on screens narrower than 375px#498
Muskan-S123 wants to merge 1 commit into
param20h:devfrom
Muskan-S123:fix/mobile-layout-375px

Conversation

@Muskan-S123
Copy link
Copy Markdown
Contributor

📋 PR Checklist

Thank you for contributing to PDF-Assistant-RAG! 🎉
Please fill out this template before submitting. PRs without it filled in will be closed.


🔗 Related Issue

Closes #17


📝 What does this PR do?

Added w-full and overflow-hidden to the chat panel container in dashboard/page.tsx to prevent layout overflow on screens narrower than 375px. Also reduced the mobile sidebar toggle button size and adjusted its position in ChatSessionSidebar.tsx to prevent clipping on very small screens like iPhone SE.


🗂️ Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🔧 Refactor / code cleanup
  • 📝 Documentation update
  • 🎨 UI / styling change
  • ⚙️ CI / tooling / config change
  • 🧪 Tests

🧪 How was this tested?

Tested at 375×667 viewport (iPhone SE) via browser DevTools. Confirmed no layout overflow at narrow widths.

  • Ran the backend locally (uvicorn app.main:app --reload)
  • Ran the frontend locally (npm run dev inside frontend/)
  • Tested the affected API endpoints manually
  • Added / updated tests

📸 Screenshots (if UI change)

Screenshot 2026-06-06 183706

⚠️ Anything to flag for reviewers?


✅ Self-Review Checklist

  • My branch is based on dev, not main
  • I have not added any secrets / API keys
  • I have not modified main branch or any HuggingFace deployment config
  • My code follows the existing style (no unnecessary formatting changes)
  • I have updated relevant docs / comments if needed

@Muskan-S123 Muskan-S123 requested a review from param20h as a code owner June 6, 2026 13:11
@Muskan-S123
Copy link
Copy Markdown
Contributor Author

Hey @param20h, the CI failure is unrelated to my changes, it's a backend connectivity issue in the test environment. My changes are Tailwind-only. Could you please review?

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.

fix: Mobile layout breaks on screens narrower than 375px

1 participant