Run Prettier's automated formatting over the codebase.

This commit is contained in:
gbuomprisco
2024-11-08 14:35:30 +08:00
parent c5d7464e61
commit 3fad846821
13 changed files with 43 additions and 34 deletions

View File

@@ -11,7 +11,6 @@ import { withI18n } from '~/lib/i18n/with-i18n';
// styles
import styles from '../../blog/_components/html-renderer.module.css';
// local imports
import { DocsCards } from '../_components/docs-cards';
import { DocsTableOfContents } from '../_components/docs-table-of-contents';
@@ -62,9 +61,9 @@ async function DocumentationPage({ params }: DocumentationPageProps) {
);
return (
<div className={'flex flex-col flex-1 space-y-4'}>
<div className={'flex flex-1 flex-col space-y-4'}>
<div className={'flex'}>
<article className={cn(styles.HTML, 'space-y-12 container')}>
<article className={cn(styles.HTML, 'container space-y-12')}>
<section className={'flex flex-col space-y-4 pt-6'}>
<h1 className={'!my-0'}>{page.title}</h1>

View File

@@ -53,7 +53,7 @@ export function DocsNavigation({ pages }: { pages: Cms.ContentItem[] }) {
<>
<Sidebar
variant={'ghost'}
className={'sticky z-1 max-h-full overflow-y-auto'}
className={'z-1 sticky max-h-full overflow-y-auto'}
>
<Tree pages={pages} level={0} />
</Sidebar>

View File

@@ -13,7 +13,7 @@ export function DocsTableOfContents(props: { data: NavItem[] }) {
const navData = props.data;
return (
<div className="lg:block hidden sticky bg-background min-w-[14em] border-l p-4 inset-y-0 h-svh max-h-full">
<div className="sticky inset-y-0 hidden h-svh max-h-full min-w-[14em] border-l bg-background p-4 lg:block">
<ol
role="list"
className="relative text-sm text-gray-600 dark:text-gray-400"

View File

@@ -1,3 +1,3 @@
import { GlobalLoader } from '@kit/ui/global-loader';
export default GlobalLoader;
export default GlobalLoader;