diff --git a/frontend/src/lib/shared/dashboard/ReaderPersonChips.svelte b/frontend/src/lib/shared/dashboard/ReaderPersonChips.svelte
index 785fbe9a..45b4ec1a 100644
--- a/frontend/src/lib/shared/dashboard/ReaderPersonChips.svelte
+++ b/frontend/src/lib/shared/dashboard/ReaderPersonChips.svelte
@@ -31,24 +31,28 @@ const { persons }: Props = $props();
{#if persons.length === 0}
{m.dashboard_reader_no_persons()}
{/if}
-
+
diff --git a/frontend/src/lib/shared/dashboard/ReaderPersonChips.svelte.spec.ts b/frontend/src/lib/shared/dashboard/ReaderPersonChips.svelte.spec.ts
index 0ae40474..03c3e1f9 100644
--- a/frontend/src/lib/shared/dashboard/ReaderPersonChips.svelte.spec.ts
+++ b/frontend/src/lib/shared/dashboard/ReaderPersonChips.svelte.spec.ts
@@ -51,21 +51,23 @@ describe('ReaderPersonChips', () => {
expect(cls).toMatch(/min-h-\[44px\]/);
});
- it('doc count renders as mint pill with bg-mint-soft', async () => {
+ it('doc count renders as neutral chip with bg-muted', async () => {
render(ReaderPersonChips, { persons: [person1] });
const link = page.getByRole('link', { name: /Anna Müller/ });
const el = (await link.element()) as HTMLElement;
- const pill = el.querySelector('[class*="bg-mint-soft"]');
- expect(pill).not.toBeNull();
- expect(pill!.textContent).toContain('23');
+ const chip = el.querySelector('[class*="bg-muted"]');
+ expect(chip).not.toBeNull();
+ expect(chip!.textContent).toContain('23');
});
- it('doc count pill has rounded-full class', async () => {
+ it('doc count chip has rounded-full and border-line classes', async () => {
render(ReaderPersonChips, { persons: [person1] });
const link = page.getByRole('link', { name: /Anna Müller/ });
const el = (await link.element()) as HTMLElement;
- const pill = el.querySelector('[class*="rounded-full"]');
- expect(pill).not.toBeNull();
+ const chip = el.querySelector('[class*="bg-muted"]');
+ expect(chip).not.toBeNull();
+ expect(chip!.className).toMatch(/rounded-full/);
+ expect(chip!.className).toMatch(/border-line/);
});
it('person grid uses grid layout', async () => {