Compare commits

..

3 Commits

Author SHA1 Message Date
2f29df49b8 Merge pull request 'style/responsive-table' (#4) from style/responsive-table into main
All checks were successful
Update Memento Dev on VPS / deploy (push) Successful in 3m38s
Reviewed-on: #4
2025-04-18 08:30:18 +00:00
233790b2d7 style: Update gap between elements in PrevNextLinks 2025-04-18 10:30:01 +02:00
d815c98a23 feat: Add table node with default class attribute 2025-04-18 10:29:38 +02: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: {