Skip to content

Commit

Permalink
fix sidebar padding on chikorita
Browse files Browse the repository at this point in the history
  • Loading branch information
AmruthPillai committed Nov 19, 2023
1 parent 8b217df commit bb28de7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 17 deletions.
37 changes: 21 additions & 16 deletions apps/artboard/src/templates/chikorita.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -501,26 +501,31 @@ export const Chikorita = ({ columns, isFirstPage = false }: TemplateProps) => {
const [main, sidebar] = columns;

return (
<div className="space-y-4">
{isFirstPage && <Header />}

<div className="relative z-10 grid grid-cols-3 space-x-8">
<div className="main group col-span-2 space-y-4">
{main.map((section) => (
<Fragment key={section}>{mapSectionToComponent(section)}</Fragment>
))}
</div>
<>
<div className="space-y-4">
{isFirstPage && <Header />}

<div className="relative z-10 grid grid-cols-3 space-x-8">
<div className="main group col-span-2 space-y-4">
{main.map((section) => (
<Fragment key={section}>{mapSectionToComponent(section)}</Fragment>
))}
</div>

<div className="sidebar group space-y-4 text-background">
{sidebar.map((section) => (
<Fragment key={section}>{mapSectionToComponent(section)}</Fragment>
))}
<div className="sidebar group space-y-4 text-background">
{sidebar.map((section) => (
<Fragment key={section}>{mapSectionToComponent(section)}</Fragment>
))}
</div>
</div>
</div>

<div className="absolute inset-0 grid grid-cols-3" style={{ top: -margin }}>
<div className="col-start-3 ml-2 bg-primary"></div>
<div
style={{ columnGap: margin }}
className="pointer-events-none absolute inset-0 grid grid-cols-3"
>
<div className="col-start-3 bg-primary" />
</div>
</div>
</>
);
};
2 changes: 1 addition & 1 deletion libs/schema/src/sample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ export const sampleResume: ResumeData = {
visible: false,
},
page: {
margin: 24,
margin: 16,
format: "a4",
options: {
breakLine: true,
Expand Down

0 comments on commit bb28de7

Please sign in to comment.