Skip to content

Commit de03c16

Browse files
committed
Improve ResumeClient mobile and tablet layout
Wrapped the ResumeA4 component in a horizontally scrollable container to enhance usability on mobile and tablet devices. Adjusted padding for better responsiveness.
1 parent fc854e8 commit de03c16

1 file changed

Lines changed: 32 additions & 27 deletions

File tree

components/resume/ResumeClient.tsx

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ export function ResumeClient({ initialData, initialTitle, initialId }: ResumeCli
352352
fontOptions={fontOptions}
353353
/>
354354

355-
<div className="container mx-auto p-4 flex flex-col items-center">
355+
<div className="container mx-auto p-2 md:p-4 flex flex-col items-center">
356356
<div className="flex items-center justify-between w-full max-w-[210mm] mb-4 px-2">
357357
<div className="flex items-center gap-2">
358358
<div className="w-2 h-2 rounded-full bg-green-500 animate-pulse" />
@@ -368,32 +368,37 @@ export function ResumeClient({ initialData, initialTitle, initialId }: ResumeCli
368368
</div>
369369
</div>
370370

371-
<ResumeA4
372-
editorRef={editorRef}
373-
resumeData={resumeData}
374-
setResumeData={setResumeData}
375-
selectedTemplate={selectedTemplate}
376-
zoomLevel={zoomLevel / 100}
377-
showPhotoUpload={templates.find(t => t.value === selectedTemplate)?.hasPhoto || false}
378-
handlePhotoUpload={handlePhotoUpload}
379-
toggleSectionVisibility={toggleSectionVisibility}
380-
handleDragStart={handleDragStart}
381-
handleDragOver={handleDragOver}
382-
handleDragEnd={handleDragEnd}
383-
updateExperience={updateExperience}
384-
removeExperience={removeExperience}
385-
addExperience={addExperience}
386-
updateEducation={updateEducation}
387-
removeEducation={removeEducation}
388-
addEducation={addEducation}
389-
updateSkill={updateSkill}
390-
removeSkill={removeSkill}
391-
addSkill={addSkill}
392-
updateCertification={updateCertification}
393-
removeCertification={removeCertification}
394-
addCertification={addCertification}
395-
getFontSizeClass={getFontSizeClass}
396-
/>
371+
{/* Scrollable Container for Mobile/Tablet */}
372+
<div className="w-full overflow-x-auto pb-8 flex justify-center">
373+
<div className="min-w-[210mm]">
374+
<ResumeA4
375+
editorRef={editorRef}
376+
resumeData={resumeData}
377+
setResumeData={setResumeData}
378+
selectedTemplate={selectedTemplate}
379+
zoomLevel={zoomLevel / 100}
380+
showPhotoUpload={templates.find(t => t.value === selectedTemplate)?.hasPhoto || false}
381+
handlePhotoUpload={handlePhotoUpload}
382+
toggleSectionVisibility={toggleSectionVisibility}
383+
handleDragStart={handleDragStart}
384+
handleDragOver={handleDragOver}
385+
handleDragEnd={handleDragEnd}
386+
updateExperience={updateExperience}
387+
removeExperience={removeExperience}
388+
addExperience={addExperience}
389+
updateEducation={updateEducation}
390+
removeEducation={removeEducation}
391+
addEducation={addEducation}
392+
updateSkill={updateSkill}
393+
removeSkill={removeSkill}
394+
addSkill={addSkill}
395+
updateCertification={updateCertification}
396+
removeCertification={removeCertification}
397+
addCertification={addCertification}
398+
getFontSizeClass={getFontSizeClass}
399+
/>
400+
</div>
401+
</div>
397402
</div>
398403
</div>
399404
)

0 commit comments

Comments
 (0)