Skip to content

fix: make Employer Assessment page responsive on mobile/narrow screens - #27

Merged
Yuvraj-Sarathe merged 3 commits into
Yuvraj-Sarathe:mainfrom
ishhwarrii:fix/employer-page-mobile-responsive
Jul 31, 2026
Merged

fix: make Employer Assessment page responsive on mobile/narrow screens#27
Yuvraj-Sarathe merged 3 commits into
Yuvraj-Sarathe:mainfrom
ishhwarrii:fix/employer-page-mobile-responsive

Conversation

@ishhwarrii

@ishhwarrii ishhwarrii commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

🔗 Related Issue

Closes #4


📝 Description of Changes

This PR enhances the Employer Assessment page for mobile devices and smaller screen widths by improving its responsive layout.

What's changed

  • Restricted the fixed viewport height and independent scrolling behavior to large screens (lg) only.
  • Enabled standard page scrolling on mobile devices so users can navigate through the entire page naturally.
  • Added lg:min-h-0 to grid items to ensure desktop panels maintain proper independent scrolling.
  • Updated the report panel layout to prevent height collapse on smaller screens.
  • Ensured the "Consult the AI" section and all assessment content remain fully accessible on mobile.

These changes preserve the desktop experience while providing a smoother and more intuitive experience on narrow screens.


🏷️ Proposed Labels

  • UI/UX
  • Documentation
  • CI/CD
  • Backend Logic
  • Anything else

📂 Core Files Changed

  • Employer Assessment page
  • Responsive layout and grid configuration
  • Mobile overflow and scrolling behavior

📸 Verification & Screenshots

  • UI/UX (User Interface / User Experience - how it looks and feels):

    • Tested on desktop, tablet, and mobile viewports.
    • Verified that the complete assessment flow, including the "Consult the AI" section, is accessible on smaller screens.
    • Confirmed that the desktop multi-column layout and scrolling behavior remain unchanged.
  • CI/CD (Continuous Integration / Continuous Deployment - the automated build/test pipeline):

    • Application runs successfully in the local development environment.
    • No regressions or layout issues observed during testing.

🤖 AI Assistance Declaration

Did you use an AI tool to write or assist with this code OR Pull Request?

  • Yes
  • No

⚠️ IF YOU CHECKED "YES", YOU MUST ANSWER THE FOLLOWING:

  • Which AI Model did you use? Claude Sonnet 5
  • Which Platform/Tool? Claude
  • What exactly did the AI do? Assisted in analyzing the responsiveness issue, suggesting implementation approaches, and improving the Pull Request documentation.
  • What exactly did YOU do? Identified the root cause, implemented the responsive layout updates, verified the changes across different screen sizes, and reviewed the final solution before submission.
  • What is the advantage of using this AI approach here? It streamlined the problem analysis and documentation process while I remained responsible for the implementation, testing, and validation.

⚠️ Reviewer Notes

This PR focuses exclusively on responsive layout improvements. Desktop behavior has been preserved, while mobile users can now scroll through the page normally and access all content without layout issues.


✅ The "I Swear I Didn't Break Anything" Pledge

  • I have thoroughly tested these changes in my own local branch.
  • I verified multiple times that this code compiles into a standalone build and does not break existing production features.

Summary by Sourcery

Improve the Employer Assessment page layout to behave responsively on mobile and narrow screens while preserving the desktop experience.

Enhancements:

  • Adjust overall page height handling so full-page scrolling is enabled on smaller viewports and fixed viewport height is limited to large screens.
  • Update main grid and side panels to only use independent scrolling on large screens, ensuring content remains accessible on mobile.
  • Refine the detailed report panel and right sidebar sizing to avoid height collapse on small screens and maintain consistent panel heights on desktop.

Summary by CodeRabbit

  • Bug Fixes
    • Improved responsive layout behavior on the assessment page with more reliable viewport sizing.
    • Enhanced large-screen scrolling and min-height behavior across sidebars and the detailed report section.
    • Updated the “Detailed Assessment Output” panel height constraints for better cross-screen usability.
  • New Features
    • Added Markdown export from the assessment page, including a brief “Exported!” confirmation on the download button.
  • Chores
    • Updated version control ignore settings to prevent tracking TypeScript incremental build artifacts.

Screenshots:
image
Screenshot (204)
Screenshot (203)

Fixes Yuvraj-Sarathe#4

Root cause: the 3-column layout (h-dvh + overflow-hidden on <main> +
overflow-y-auto per pane) was designed for desktop's side-by-side
independent scrolling. On mobile the columns stack (grid-cols-1),
but overflow-hidden clipped everything past viewport height instead
of scrolling, so the 'Consult the AI' question bar (last item in the
right column) became unreachable.

Fix: scope the fixed-height/clip/independent-scroll behavior to lg:
and above, so mobile falls back to normal page scroll. Also added
lg:min-h-0 to fix grid items' default min-height:auto blocking their
own overflow scroll on desktop, and gave the report panel a sane
min-height on mobile instead of h-full collapsing to 0.
@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

@ishhwarrii is attempting to deploy a commit to the Yuvraj Sarathe's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The assessment page now uses responsive viewport heights, large-screen-only internal scrolling, adjusted sidebar sizing, and responsive detailed output panel constraints. The TypeScript incremental build artifact is also ignored.

Changes

Responsive assessment layout

Layer / File(s) Summary
Responsive height and scrolling
app/assessment/page.tsx
The page container, sidebars, detailed report, and per-repository output panel use responsive height, overflow, minimum-height, and padding classes for narrower and large screens.

Repository hygiene

Layer / File(s) Summary
TypeScript build artifact ignore
.gitignore
Adds tsconfig.tsbuildinfo to the ignored files.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested reviewers: yuva-deekshitha-n

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Out of Scope Changes check ⚠️ Warning The Markdown export UI and tsbuildinfo .gitignore update are unrelated to the mobile responsiveness issue. Move the Markdown export and .gitignore changes to a separate PR or link them to a related issue.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The layout changes address the mobile/narrow-screen responsiveness problem and keep the questions bar/content reachable.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: improving the Employer Assessment page for mobile and narrow screens.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Fix failing CI checks
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sourcery-ai

sourcery-ai Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

🧙 Sourcery has finished reviewing your pull request!


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@Yuvraj-Sarathe Yuvraj-Sarathe added enhancement New feature or request frontend Deals with UI/UX components level: intermediate ECSoC26 Elite Coders Summer of Camp merged ECSoC26-L2 labels Jul 27, 2026

@Yuvraj-Sarathe Yuvraj-Sarathe left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure your changes align with the linting tests.

You can check why this is failing by either visiting logs or just simply switching to the Files Changed tab in the PR.

@Yuvraj-Sarathe

Copy link
Copy Markdown
Owner

@ishhwarrii since this is a UI PR, please add screenshots of verification, and I can merge the PR right away!

@ishhwarrii

Copy link
Copy Markdown
Contributor Author

@Yuvraj-Sarathe Have uploaded the screenshots! please checkout.

@Yuvraj-Sarathe
Yuvraj-Sarathe merged commit f40a45c into Yuvraj-Sarathe:main Jul 31, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ECSoC26-L2 ECSoC26 Elite Coders Summer of Camp ecsoc-medium enhancement New feature or request frontend Deals with UI/UX components good-pr good-ui level: intermediate merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI/UX enhancement for Employer's Page on mobile and on narrower screen

2 participants