style/responsive-table #4

Merged
GauthierWebDev merged 2 commits from style/responsive-table into main 2025-04-18 08:30:19 +00:00
2 changed files with 11 additions and 1 deletions

View File

@ -80,7 +80,7 @@ export function PrevNextLinks() {
if (!nextPage && !previousPage) return null;
return (
<dl className="mt-12 flex border-t border-slate-200 pt-6 dark:border-slate-800">
<dl className="mt-12 flex gap-4 border-t border-slate-200 pt-6 dark:border-slate-800">
{previousPage && <PageLink dir="previous" {...previousPage} />}
{nextPage && <PageLink className="ml-auto text-right" {...nextPage} />}
</dl>

View File

@ -51,6 +51,16 @@ const nodes = {
},
},
},
table: {
...defaultNodes.table,
attributes: {
...defaultNodes.table.attributes,
class: {
type: String,
default: "block max-w-full overflow-x-auto border-collapse text-sm",
},
},
},
th: {
...defaultNodes.th,
attributes: {