mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
UI: fix trivial bugs
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'fumadocs-ui': patch
|
||||
---
|
||||
|
||||
fix trivial bugs
|
||||
@@ -47,7 +47,11 @@ export type CodeBlockProps = HTMLAttributes<HTMLElement> & {
|
||||
export const Pre = forwardRef<HTMLPreElement, HTMLAttributes<HTMLPreElement>>(
|
||||
({ className, ...props }, ref) => {
|
||||
return (
|
||||
<pre ref={ref} className={cn('p-4', className)} {...props}>
|
||||
<pre
|
||||
ref={ref}
|
||||
className={cn('p-4 focus-visible:outline-none', className)}
|
||||
{...props}
|
||||
>
|
||||
{props.children}
|
||||
</pre>
|
||||
);
|
||||
|
||||
@@ -48,14 +48,10 @@ const code = cva(
|
||||
},
|
||||
);
|
||||
|
||||
export function TypeTable({
|
||||
type,
|
||||
}: {
|
||||
type: Record<string, ObjectType>;
|
||||
}): React.ReactElement {
|
||||
export function TypeTable({ type }: { type: Record<string, ObjectType> }) {
|
||||
return (
|
||||
<div className="overflow-auto whitespace-nowrap">
|
||||
<table className="text-sm text-fd-muted-foreground">
|
||||
<div className="prose my-6 overflow-auto prose-no-margin">
|
||||
<table className="whitespace-nowrap text-sm text-fd-muted-foreground">
|
||||
<thead>
|
||||
<tr>
|
||||
<th className="w-[45%]">Prop</th>
|
||||
|
||||
Reference in New Issue
Block a user