Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions frontend/main/src/components/admin/EditPosts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function EditPosts({ type }: { type: PostType }) {
<section role="rowgroup" key={post.id} className="flex tbody lg:block">
<ul
role="row"
className="grid justify-between text-center tr rounded-tl-md rounded-bl-md lg:rounded-tr-md lg:rounded-bl-none lg:grid-cols-5 bg-secondary-600 dark:bg-secondary-600 text-basics-50 dark:text-basics-50"
className="grid justify-between text-center tr rounded-tl-md rounded-bl-md lg:rounded-tr-md lg:rounded-bl-none lg:grid-cols-6 bg-secondary-600 dark:bg-secondary-600 text-basics-50 dark:text-basics-50"
>
<li
className="p-2 text-left lg:justify-self-start"
Expand All @@ -38,6 +38,9 @@ function EditPosts({ type }: { type: PostType }) {
<li className="p-2 text-left" role="columnheader">
Id
</li>
<li className="p-2 text-left" role="columnheader">
Slug
</li>
<li className="p-2 text-left" role="columnheader">
Date
</li>
Expand All @@ -59,19 +62,24 @@ function EditPosts({ type }: { type: PostType }) {
}`}
>
<Link href={`${type}/${post.id}`}>
<a className="grid items-center lg:grid-cols-5 hover:text-current dark:hover:text-current">
<a className="grid items-center lg:grid-cols-6 hover:text-current dark:hover:text-current">
<li className="p-2 text-left td" role="cell">
{post.title}
</li>
<li className="p-2 text-left td" role="cell">
<li className="p-2 text-sm text-left td" role="cell">
{post.id}
</li>
<li className="p-2 text-left td" role="cell">
{post.slug}
</li>
<li className="p-2 text-left td" role="cell">
{post.updatedAt}
</li>
<li className="flex flex-col p-2 text-left td" role="cell">
{post.authors?.map((author, i) => (
<p key={i}>{author.email}</p>
<p key={i} className="text-sm">
{author.email}
</p>
))}
</li>
<li
Expand Down