Skip to content

Commit

Permalink
fix: table overflow x fixes #428
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Aug 16, 2024
1 parent 1d27e2d commit 2878220
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/components/ui/markdown/renderers/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ import { WrappedElementProvider } from '~/providers/shared/WrappedElementProvide
export const MTable: FC<JSX.IntrinsicElements['table']> = (props) => {
const { className, ...rest } = props
return (
<table
{...rest}
className={clsxm('table table-zebra table-pin-rows', className)}
/>
<div className="w-full min-w-0 overflow-auto">
<table
{...rest}
className={clsxm('table table-zebra table-pin-rows', className)}
/>
</div>
)
}

Expand Down

0 comments on commit 2878220

Please sign in to comment.