Skip to content

Commit

Permalink
chore(styles): fixed documents blankslate padding
Browse files Browse the repository at this point in the history
  • Loading branch information
geclos committed Nov 18, 2024
1 parent 4c82b42 commit c8e1aa0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { ReactNode } from 'react'

import { cn } from '@latitude-data/web-ui'

export function DocumentBlankSlateLayout({
children,
className,
}: {
children: ReactNode
className?: string
}) {
return (
<div className='min-h-full'>
<div className={cn('min-h-full', className)}>
<div className='p-6 py-12 bg-backgroundCode border rounded-lg flex justify-center min-h-full'>
<div className='flex flex-col items-center gap-8 max-w-3xl'>
{children}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default async function DocumentsPage({

return (
<DocumentsLayout projectId={project.id} commitUuid={commitUuid}>
<DocumentBlankSlateLayout>
<DocumentBlankSlateLayout className='p-6'>
<div className='flex flex-col gap-4 items-center'>
<Text.H4M>{project.name}</Text.H4M>
<Text.H5>
Expand Down

0 comments on commit c8e1aa0

Please sign in to comment.