mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
UI: Fix callout margin
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'fumadocs-ui': patch
|
||||
---
|
||||
|
||||
Fix callout margin
|
||||
@@ -2,5 +2,3 @@
|
||||
@import 'fumadocs-ui/css/neutral.css';
|
||||
@import 'fumadocs-ui/css/preset.css';
|
||||
@import 'fumadocs-python/preset.css';
|
||||
|
||||
@source '../node_modules/fumadocs-ui/dist/**/*.js';
|
||||
|
||||
@@ -12,11 +12,12 @@
|
||||
"dependencies": {
|
||||
"fumadocs-core": "workspace:*",
|
||||
"fumadocs-mdx": "workspace:*",
|
||||
"fumadocs-ui": "workspace:*",
|
||||
"fumadocs-python": "workspace:*",
|
||||
"fumadocs-ui": "workspace:*",
|
||||
"next": "15.3.1",
|
||||
"react": "^19.1.0",
|
||||
"react-dom": "^19.1.0"
|
||||
"react-dom": "^19.1.0",
|
||||
"shiki": "^3.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/postcss": "^4.1.3",
|
||||
|
||||
@@ -40,7 +40,7 @@ export interface TwoslashTypesCache {
|
||||
export function createFileSystemTypesCache(
|
||||
options: FileSystemTypeResultCacheOptions = {},
|
||||
): TwoslashTypesCache {
|
||||
const dir = resolve(process.cwd(), options.dir ?? '.next/cache/twoslash');
|
||||
const dir = resolve(options.dir ?? '.next/cache/twoslash');
|
||||
|
||||
return {
|
||||
init() {
|
||||
|
||||
@@ -53,9 +53,9 @@ export const Callout = forwardRef<HTMLDivElement, CalloutProps>(
|
||||
),
|
||||
error: <CircleX className="size-5 fill-red-500 text-fd-card" />,
|
||||
}[type]}
|
||||
<div className="min-w-0 flex-1">
|
||||
<div className="min-w-0 flex flex-col gap-2 flex-1">
|
||||
{title ? <p className="font-medium !my-0">{title}</p> : null}
|
||||
<div className="text-fd-muted-foreground prose-no-margin mt-2 empty:hidden">
|
||||
<div className="text-fd-muted-foreground prose-no-margin empty:hidden">
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Generated
+6
-3
Reference in New Issue
Block a user