From 6160d66f7190cc91e0d3448b1856cefb464b9058 Mon Sep 17 00:00:00 2001 From: partbomb Date: Mon, 24 Aug 2026 17:01:14 +0500 Subject: [PATCH 1/2] Add print stylesheet and button for builder resume draft Fixes #25 --- web/index.html | 45 ++++++++++++++++++++++++++++++++++++++++++++- web/ui/state.mjs | 12 ++++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) diff --git a/web/index.html b/web/index.html index 442d007..75e141d 100644 --- a/web/index.html +++ b/web/index.html @@ -537,7 +537,49 @@ /* a11y: skip-to-content #20 */ .skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;background:var(--navy);color:#fff;padding:8px 12px;z-index:9999;border-radius:6px;text-decoration:none;font-weight:600} -.skip-link:focus{left:8px;top:8px;width:auto;height:auto} +.skip-link:focus{left:8px;top:8px;width:auto;height:auto} + @media print { + body { background: #fff !important; color: #000 !important; } + /* Hide chrome */ + header, #mob_tabs, #status, #setupbanner, #cadence_nudge, #reconcile_banner, #followups, #triage, .scrim, .drawer, .modal, #auth, #onboard { display: none !important; } + + /* Builder print styles */ + #builderView { position: static !important; background: #fff !important; height: auto !important; overflow: visible !important; } + .builder, .b-canvas, .paper { + display: block !important; + height: auto !important; + overflow: visible !important; + padding: 0 !important; + margin: 0 !important; + border: none !important; + box-shadow: none !important; + background: #fff !important; + } + + /* Hide non-draft builder chrome */ + .b-top, .b-nav, .b-rail, .verbar, .empty-build, .row, .shipped-box, .rp2-tl, #rp2_vers, #rp2_verscount, .lbl, #rp2_edtitle, p.muted, .review-box, .ats-box { + display: none !important; + } + + #rp2_editor { display: block !important; } + + /* Style the textarea for clean print output */ + #rp2_edtext { + width: 100% !important; + height: auto !important; + border: none !important; + box-shadow: none !important; + background: transparent !important; + color: #000 !important; + font-size: 11pt !important; + line-height: 1.5 !important; + resize: none !important; + overflow: visible !important; + white-space: pre-wrap !important; + field-sizing: content; + } + } + @@ -1049,6 +1091,7 @@

Career advisor

+ diff --git a/web/ui/state.mjs b/web/ui/state.mjs index 8bb1314..9d03148 100644 --- a/web/ui/state.mjs +++ b/web/ui/state.mjs @@ -3053,6 +3053,18 @@ $('rp2_humanize').onclick=async()=>{ b.disabled=false; b.textContent=o } $('rp2_eddl').onclick=()=>{ if(RP2EDIT) dlDoc(rpName(RP2EDIT.kind), $('rp2_edtext').value) } +$('rp2_edprint').onclick=()=>{ if(RP2EDIT) window.print() } +window.addEventListener('beforeprint', () => { + const ed=$('rp2_edtext'); + if(ed && !ed.closest('.hidden')) { + ed.style.height = 'auto'; + ed.style.height = ed.scrollHeight + 'px'; + } +}); +window.addEventListener('afterprint', () => { + const ed=$('rp2_edtext'); + if(ed) ed.style.height = ''; +}); // ---- Phase 2: pick what to use (deterministic parse of YOUR resume — no AI, you confirm it) ---- function rp2LooksEdu(t){ From 8ceaa4567413991c0d1412c83177929b5d9b8231 Mon Sep 17 00:00:00 2001 From: partbomb Date: Mon, 24 Aug 2026 20:04:01 +0000 Subject: [PATCH 2/2] fix(print): hide #app so builder print is draft-only When printing from the builder overlay, the board under #app was still in the print tree. Hide it in @media print so preview stays draft-only. Co-authored-by: Cursor Agent --- web/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/index.html b/web/index.html index 75e141d..75785fa 100644 --- a/web/index.html +++ b/web/index.html @@ -541,7 +541,7 @@ @media print { body { background: #fff !important; color: #000 !important; } /* Hide chrome */ - header, #mob_tabs, #status, #setupbanner, #cadence_nudge, #reconcile_banner, #followups, #triage, .scrim, .drawer, .modal, #auth, #onboard { display: none !important; } + #app, header, #mob_tabs, #status, #setupbanner, #cadence_nudge, #reconcile_banner, #followups, #triage, .scrim, .drawer, .modal, #auth, #onboard { display: none !important; } /* Builder print styles */ #builderView { position: static !important; background: #fff !important; height: auto !important; overflow: visible !important; }