refactor!: refine spacings

BREAKING CAHNGE: some spaces changed
This commit is contained in:
rusconn
2024-03-28 18:08:33 +09:00
parent 2fc9b7e419
commit 2741082c84
14 changed files with 99 additions and 89 deletions

View File

@@ -9,14 +9,14 @@ type Props = {
export function PageSection({ className, children, title, control }: Props) {
return (
<section className={cn("mt-3 flex flex-col", className)}>
<section className={cn("flex flex-col gap-1.5", className)}>
{control ? (
<div className="mb-1.5 flex w-full items-end">
<h2 className="text-base">{title}</h2>
<div className="ml-auto">{control}</div>
<div className="flex justify-between">
<h2 className="self-end text-base">{title}</h2>
<div>{control}</div>
</div>
) : (
<h2 className="mb-1.5 text-base">{title}</h2>
<h2 className="text-base">{title}</h2>
)}
{children}
</section>