A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
fixing page breaks in the print hTML
Amruth Pillai6eccbd5373fa
diff --git a/src/components/App/App.js b/src/components/App/App.jsindex ceea9cdd3..cd4e5e15e 100644--- a/src/components/App/App.js+++ b/src/components/App/App.js@@ -40,7 +40,7 @@ const App = () => {<div className="z-0 h-screen col-span-3 flex justify-center items-center overflow-scroll"><divid="page"- className="animated fadeIn p-10 my-auto shadow-2xl"+ className="animated fadeIn my-auto shadow-2xl"style={{ animationDelay: '500ms' }}>{renderTemplate()}diff --git a/src/index.css b/src/index.cssindex 7d7627465..20ff01cec 100644--- a/src/index.css+++ b/src/index.css@@ -67,6 +67,7 @@ li {width: 21cm;height: 29.7cm;zoom: 0.8;+ padding: 2.5em;overflow: scroll;background-color: white;}@@ -74,7 +75,7 @@ li {@page {size: A4;- margin: 0;+ margin: 2.5em;}@media print {@@ -82,19 +83,20 @@ li {body,body * {-webkit-print-color-adjust: exact;+ color-adjust: exact;visibility: hidden;}#page,#page * {+ page-break-inside: avoid;visibility: visible;}#page {background-color: white;- width: 21cm;- height: 29.7cm;margin: 0;+ padding: 0;box-shadow: none;position: absolute;left: 0;diff --git a/src/templates/pikachu/Pikachu.js b/src/templates/pikachu/Pikachu.jsindex 5739ede57..659a27201 100644--- a/src/templates/pikachu/Pikachu.js+++ b/src/templates/pikachu/Pikachu.js@@ -11,7 +11,11 @@ const Pikachu = () => {const Photo = () =>data.profile.photo !== '' && (<div className="self-center col-span-4">- <img className="h-48 rounded-full mx-auto object-cover" src={data.profile.photo} alt="" />+ <img+ className="w-48 h-48 rounded-full mx-auto object-cover"+ src={data.profile.photo}+ alt=""+ /></div>);