fix: enable markdown table horizontal scroll

This commit is contained in:
134 2026-06-24 00:59:29 +08:00
parent fb4915e657
commit d5fed4f2da

View File

@ -302,10 +302,15 @@ function DownloadableMarkdownTable({
<span>下载表格</span> <span>下载表格</span>
</button> </button>
</div> </div>
<div className="overflow-x-auto"> <div className="max-w-full overflow-x-auto overscroll-x-contain">
<table <table
ref={tableRef} ref={tableRef}
className={cn("w-full border-collapse text-sm", className)} className={cn(
"w-max min-w-full border-collapse text-sm",
"[&_td]:min-w-32 [&_td]:align-top [&_td]:break-words [&_td]:whitespace-normal",
"[&_th]:min-w-32 [&_th]:whitespace-nowrap",
className
)}
{...props} {...props}
> >
{children} {children}