mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-15 07:17:00 +10:00
fixes #2526
This commit is contained in:
@@ -21,16 +21,16 @@ export function PageSection<T extends SectionType>({ type, className, children }
|
||||
<section className={cn(`page-section page-section-${type}`, className)}>
|
||||
<h6 className="mb-1 text-(--page-primary-color)">{section.title || getSectionTitle(type)}</h6>
|
||||
|
||||
<ul
|
||||
<div
|
||||
className="section-content grid gap-x-(--page-gap-x) gap-y-(--page-gap-y)"
|
||||
style={{ gridTemplateColumns: `repeat(${section.columns}, 1fr)` }}
|
||||
>
|
||||
{items.map((item) => (
|
||||
<li key={item.id} className={cn(`section-item section-item-${type} wrap-break-word *:space-y-1`)}>
|
||||
<div key={item.id} className={cn(`section-item section-item-${type} wrap-break-word *:space-y-1`)}>
|
||||
{children(item)}
|
||||
</li>
|
||||
</div>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user