Skip to content

Fix: Delete button click issue, mobile responsiveness, and PDF single…#958

Merged
codeaashu merged 1 commit into
codeaashu:mainfrom
akshay0611:fix/resume-builder-issues
May 27, 2025
Merged

Fix: Delete button click issue, mobile responsiveness, and PDF single…#958
codeaashu merged 1 commit into
codeaashu:mainfrom
akshay0611:fix/resume-builder-issues

Conversation

@akshay0611
Copy link
Copy Markdown
Contributor

Description

Fixed issues related to:

  • Unresponsive delete button
  • Mobile responsiveness of the Resume Builder
  • PDF output splitting into two pages even for short resumes

Related Issues

Closes #957

Changes Proposed

  • Fixed the css of delete button to ensure proper interaction
  • Applied responsive CSS styles for better usability on mobile devices
  • Updated pdfGenerator.js code to prevent page breaks even for short resumes

Checklist

  • I have read and followed the Contribution Guidelines.
  • All new and existing tests passed.
  • I have updated the documentation to reflect the changes I've made.
  • My code follows the code style of this project.
  • The title of my pull request is a short description of the requested changes.

Screenshots

Mobile Resposive

devreusme1

devresume2

More ATS friendly Resume Under a single page

Screenshot 2025-05-26 at 2 04 50 PM

Note to reviewers

I'm open to discussing and making any changes you suggest.
I'll also continue to work on fixing any other issues I come across in the Resume Builder in the near future.

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

🎉 Incredible work, @akshay0611! 🚀

🔥 Welcome to DevDisplay — A space where developers and all the tech enthusiasts can connect, collaborate, code, create, and conquer in the tech ecosystem.

At DevDisplay, we don't just welcome contributors—we celebrate them! 🎊 Because here, your ideas matter. Your code matters. You matter. 🚀

💡 This isn't just about adding your profile. It's about making an impact, showcasing your skills, and standing out in the developer ecosystem.

Think of DevDisplay as your own project, not just another open-source contribution. We're not just a platform—we're a global movement redefining the tech space. Our vision is to be the go-to platform for developers and tech enthusiasts worldwide.

🚀 Innovation has no limits!
We encourage you to think beyond the ordinary. Got a revolutionary idea? Spot a gap in the tech world? DevDisplay can be the solution! We want contributors like you to dream big, build bold, and bring game-changing features to life.

🌍 DevDisplay is more than an open-source project. It's a global tech hub, a thriving community, and a platform where you can connect, collaborate, code, create, and conquer.

🔥 Keep pushing boundaries—we're just getting started!
If you put your 💯 into creating something exceptional, you could even join our Global Core Team and also you can lead DevDisplay as a Community Leader in your area, college, or university.


💡 Your issue is now in review!

  • Our maintainers will soon review your PR and provide feedback/suggestions. 🚀 Stay tuned, stay engaged, and get ready to bring your ideas to life! 💡

---

📢 Have ideas to improve DevDisplay? Let us know! We're always looking for innovative minds to shape the future of tech.

💬 Join the conversation. Grow with the community. You belong here. 🙌


📢 Join Our Global Developer Communities & Connect with Innovators:

📩 Need Help? Reach Out to the Team:

💻 Follow DevDisplay on Social Media & Stay Updated:

🔥 🌟 Thank You for Being Here!

@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
devdisplay ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2025 8:44am

@github-actions
Copy link
Copy Markdown

Hi there! This issue is still open. We are looking forward to your response.
Assignees: None

@codeaashu codeaashu self-requested a review May 27, 2025 21:36
@codeaashu codeaashu requested a review from Copilot May 27, 2025 21:36
@codeaashu codeaashu added DevDisplay 🌟 This label recognizes every contributor to the DevDisplay Community for their support...💌 Dev Enhancer 🌟 Label 2 for second-time contributors who enhancing and refining features of DevDisplay. 🔧 Dev Innovator 🌟 Label 3 for contributors adding new, innovative features to DevDisplay, leading in creativity.💡 labels May 27, 2025
@codeaashu codeaashu merged commit e572b74 into codeaashu:main May 27, 2025
4 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses three main issues: ensuring the delete button is interactive, improving mobile responsiveness of the Resume Builder UI, and preventing short resumes from splitting into multiple PDF pages. Key changes include:

  • CSS updates to remove fixed heights/overflows and add responsive styles.
  • PDF generator tweaks for tighter spacing, link rendering, and consistent font sizing.
  • Sidebar and ResumeBuilder components extended with mobile menu open/close logic.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/components/ResumeBuilder/utils/pdfGenerator.js Adjusted line heights, font sizes, spacing, and enhanced link rendering
src/components/ResumeBuilder/styles/ResumeBuilder.css Removed fixed-height overflow rules for responsive layout
src/components/ResumeBuilder/styles/FormSections.css Added box-sizing reset and fine-tuned mobile form layout
src/components/ResumeBuilder/Sidebar.jsx Introduced mobile menu toggle, desktop collapse state, and updated icons
src/components/ResumeBuilder/ResumeBuilder.jsx Added viewport detection, mobile menu button, and updated step status

const pageWidth = doc.internal.pageSize.getWidth();
const contentWidth = pageWidth - 2 * margin;
const bodyFontSize = 10;
const wrappedLineHeight = 3.5;
Copy link

Copilot AI May 27, 2025

Choose a reason for hiding this comment

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

[nitpick] There are many magic numbers for line heights and spacings throughout this file. Consider centralizing these values (e.g., line heights, font sizes, margins) into top-level constants or a config object to improve readability and ease future adjustments.

Copilot uses AI. Check for mistakes.
Comment on lines +146 to +152
doc.setTextColor(0, 0, 0);
doc.text(separator, currentLinkX, linkTextInitialY);
currentLinkX += doc.getTextDimensions(separator, { fontSize: 9 }).w;
}

doc.setTextColor(rgbLinkColor[0], rgbLinkColor[1], rgbLinkColor[2]);
doc.textWithLink(linkInfo.text, currentLinkX, linkTextInitialY, { url: linkInfo.url });
Copy link

Copilot AI May 27, 2025

Choose a reason for hiding this comment

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

[nitpick] The logic for rendering and styling links is repeated in multiple spots. You could extract a helper function (e.g., renderLinkLine(doc, text, x, y, options)) to encapsulate setting color, adding link, and resetting color to reduce duplication.

Suggested change
doc.setTextColor(0, 0, 0);
doc.text(separator, currentLinkX, linkTextInitialY);
currentLinkX += doc.getTextDimensions(separator, { fontSize: 9 }).w;
}
doc.setTextColor(rgbLinkColor[0], rgbLinkColor[1], rgbLinkColor[2]);
doc.textWithLink(linkInfo.text, currentLinkX, linkTextInitialY, { url: linkInfo.url });
renderLinkLine(doc, separator, currentLinkX, linkTextInitialY);
currentLinkX += doc.getTextDimensions(separator, { fontSize: 9 }).w;
}
renderLinkLine(doc, linkInfo.text, currentLinkX, linkTextInitialY, { url: linkInfo.url, color: rgbLinkColor });

Copilot uses AI. Check for mistakes.
}}
aria-label={isMobileView ? 'Close menu' : desktopCollapsed ? 'Expand sidebar' : 'Collapse sidebar'}
>
{isMobileView ? <X size={18} /> : desktopCollapsed ? <Menu size={18} /> : <X size={18} />}
Copy link

Copilot AI May 27, 2025

Choose a reason for hiding this comment

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

[nitpick] Using the same <X> icon for both opening/closing the mobile menu and collapsing the desktop sidebar may confuse users. Consider using directional chevrons (e.g., ChevronLeft/ChevronRight) to clearly indicate expand/collapse actions on desktop.

Suggested change
{isMobileView ? <X size={18} /> : desktopCollapsed ? <Menu size={18} /> : <X size={18} />}
{isMobileView ? <X size={18} /> : desktopCollapsed ? <ChevronRight size={18} /> : <ChevronLeft size={18} />}

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +3
:root {
}

Copy link

Copilot AI May 27, 2025

Choose a reason for hiding this comment

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

This empty :root {} selector at the top of the file appears unused and can be removed to reduce clutter.

Suggested change
:root {
}

Copilot uses AI. Check for mistakes.
@@ -1,3 +1,7 @@
* {
Copy link

Copilot AI May 27, 2025

Choose a reason for hiding this comment

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

[nitpick] A global * { box-sizing: border-box; } reset may unintentionally override styles elsewhere in the app. Consider scoping this rule to only the form section container or confirming it aligns with the global reset policy.

Suggested change
* {
.form-card, .form-card * {

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dev Enhancer 🌟 Label 2 for second-time contributors who enhancing and refining features of DevDisplay. 🔧 Dev Innovator 🌟 Label 3 for contributors adding new, innovative features to DevDisplay, leading in creativity.💡 DevDisplay 🌟 This label recognizes every contributor to the DevDisplay Community for their support...💌

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Resume Builder Issues

3 participants