feat(templates): make main full-width if sidebar is empty

This commit is contained in:
0x346e3730
2024-11-14 09:39:57 +04:00
parent e29f973889
commit c87242142d
7 changed files with 10 additions and 10 deletions

View File

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