Skip to content

Commit

Permalink
fix: prose style
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Mar 30, 2024
1 parent 89b136a commit 0c06c2d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/app/(app)/categories/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function Page() {
>
{child.title}
</Link>
<span className="meta">
<span className="meta ml-2">
{(date.getMonth() + 1).toString().padStart(2, '0')}/
{date.getDate().toString().padStart(2, '0')}/
{date.getFullYear()}
Expand Down
4 changes: 2 additions & 2 deletions src/app/(app)/thinking/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,12 @@ const List = () => {

<div
className={clsx(
'relative inline-block rounded-xl px-2 py-1 text-zinc-800 dark:text-zinc-200',
'relative inline-block rounded-xl p-3 text-zinc-800 dark:text-zinc-200',
'rounded-tl-sm bg-zinc-600/5 dark:bg-zinc-500/20',
'max-w-[calc(100%-3rem)]',
)}
>
<Markdown allowsScript>{item.content}</Markdown>
<Markdown>{item.content}</Markdown>

{!!item.ref && (
<div>
Expand Down
3 changes: 1 addition & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import '../styles/index.css'

import type { PropsWithChildren } from 'react'

import { BrowserSupport } from './browser-support'
import { init } from './init'
import { InitInClient } from './InitInClient'

Expand All @@ -12,7 +11,7 @@ export default async function RootLayout({ children }: PropsWithChildren) {
<>
{children}
<InitInClient />
<BrowserSupport />
{/* <BrowserSupport /> */}
</>
)
}
16 changes: 5 additions & 11 deletions src/styles/tailwindcss.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,15 @@ html body {

.prose {
max-width: 100% !important;
font-size: 1.1rem;

p {
@apply break-words;
}

figure img {
@apply mb-0 mt-0;
}
}

*:focus {
Expand All @@ -40,17 +45,6 @@ html body {
box-shadow: theme(colors.accent) 0px 0px 0px 1px;
}

.prose {
/* :where(.image-placeholder):not(:where([class~='not-prose'] *)) {
margin-top: 2em;
margin-bottom: 2em;
} */

figure img {
@apply mb-0 mt-0;
}
}

html.noise body::before {
position: fixed;
inset: 0;
Expand Down

0 comments on commit 0c06c2d

Please sign in to comment.