Skip to content

Commit ca55593

Browse files
committed
Fix page break in print version of resume
1 parent 9194a49 commit ca55593

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

_TODO.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@ https://aws.plainenglish.io/how-to-build-a-chatbot-using-aws-lex-and-lambda-in-2
4040

4141
- Print to PDF is breaking the page after the dotted line after the Alento Infrastructure Engineer block, so there's excessive space at the bottom of that page before the Eli Lilly Systems Analyst block
4242
- Need to have an Education block
43+
44+
## "Sticky" TOC
45+
46+
The TOC should be sticky as the page scrolls down

src/components/Pages/Resume/partials/Experience.astro

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ const { renderedClients } = Astro.props as Props
2525
return (
2626
<li
2727
id={`experienceItem-${index + 1}`}
28-
class:list={[
29-
'flex flex-col gap-1.5 print:block print:space-y-1.5 print:break-inside-auto mb-6 last:mb-0',
30-
{ 'print:break-before-page': index === renderedClients.length - 1 },
31-
]}
28+
class="flex flex-col gap-1.5 print:block print:space-y-1.5 print:break-inside-auto mb-6 last:mb-0"
3229
itemprop="worksFor"
3330
itemscope
3431
itemref="resumeSubject"

0 commit comments

Comments
 (0)