Skip to content

Commit

Permalink
fix: policy template
Browse files Browse the repository at this point in the history
  • Loading branch information
esemyonov committed Dec 8, 2023
1 parent 3a41c1e commit 4e14433
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/policies/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default async function Page() {
const policies = await getAllPolicies();

return (
<DocsContainer>
<DocsContainer className="w-full px-8">
<Prose>
<DocsHeader title="Policies" />
<p>
Expand Down
16 changes: 14 additions & 2 deletions src/components/DocsContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
import { PropsWithChildren } from "react";
import clsx from "classnames";

export function DocsContainer({ children }: PropsWithChildren) {
export function DocsContainer({
children,
className,
}: {
children: React.ReactNode;
className?: string;
}) {
return (
<div className="sticky top-[4.75rem] -ml-0.5 flex h-[calc(100vh-7rem)] overflow-y-auto overflow-x-hidden pt-[60px]">
<div
className={clsx(
className,
"sticky top-[4.75rem] -ml-0.5 flex h-[calc(100vh-7rem)] overflow-y-auto overflow-x-hidden pt-[60px]",
)}
>
{children}
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/PolicyCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const PolicyCard: React.FC<Props> = ({ name, href, icon }) => {
return (
<Link
href={href}
className="group block flex items-center gap-4 rounded-lg border border-gray-500 bg-white p-4 text-black transition-colors hover:bg-gray-500/50 md:h-36 md:flex-col md:justify-center md:px-5 md:py-6 md:text-center"
className="group flex items-center gap-4 rounded-lg border border-gray-500 bg-white p-4 text-black transition-colors hover:bg-gray-500/50 md:h-36 md:flex-col md:justify-center md:px-5 md:py-6 md:text-center"
>
<div className="rounded-lg bg-pink/10 p-2">
<div
Expand Down

0 comments on commit 4e14433

Please sign in to comment.