- refactor(templates): update sidebar display conditionals for consistency

- Modified multiple template files to change the sidebar length conditionals from `!== 0` to `> 0` for improved readability and consistency across components.

- Added Code of Conduct
This commit is contained in:
Amruth Pillai
2025-01-12 15:36:01 +01:00
parent 0fec5ce86d
commit a3ef6520e7
7 changed files with 161 additions and 7 deletions

View File

@ -587,7 +587,7 @@ export const Gengar = ({ columns, isFirstPage = false }: TemplateProps) => {
</div>
</div>
<div className={cn("main group", sidebar.length !== 0 ? "col-span-2" : "col-span-3")}>
<div className={cn("main group", sidebar.length > 0 ? "col-span-2" : "col-span-3")}>
{isFirstPage && (
<div
className="p-custom space-y-4"