Skip to content

Commit 2da7718

Browse files
committed
style(ArticleListCard): align list items
1 parent a3931fe commit 2da7718

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

www/ui/admin/article-list-card/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ export const ArticleListCard = memo(
6666
{title}
6767
</span>
6868

69-
<div className="max-w-3/5 flex gap-2 items-center justify-end grow">
70-
<div className="overflow-x-auto no-scrollbar snap-mandatory snap-x flex gap-2 items-center">
69+
<div className="max-w-3/5 flex gap-2 items-center justify-end">
70+
<div className="overflow-x-auto no-scrollbar snap-mandatory snap-x flex gap-2 items-center rounded-full">
7171
{tags.map((tag) => (
7272
<Chip
7373
key={`article-list-card-${id}-tag-${tag.id}`}
7474
icon={TagIcon}
7575
text={tag.value}
7676
size="sm"
77-
className="whitespace-nowrap snap-center snap-normal"
77+
className="whitespace-nowrap snap-center snap-normal bg-purple-300/10"
7878
/>
7979
))}
8080
</div>
@@ -94,7 +94,7 @@ export const ArticleListCard = memo(
9494
/>
9595
</div>
9696

97-
<div className="flex items-center justify-end gap-1 grow max-w-20">
97+
<div className="flex items-center justify-end gap-1 max-w-20 shrink-0">
9898
<DeleteArticleButton articleId={id} articleTitle={title} />
9999

100100
{(auth?.user.id === author.id || can(auth?.permissions, Permission.UpdateArticle)) && (

0 commit comments

Comments
 (0)