feat: better looking

This commit is contained in:
2026-02-20 21:56:59 +01:00
parent f69f42c647
commit b6446b797f
4 changed files with 172 additions and 47 deletions

View File

@@ -243,13 +243,17 @@ describe('PreviewServer', () => {
expect(html).toContain('class="macro-tag-cloud"');
expect(html).toContain('data-tag-cloud="true"');
expect(html).toContain('data-orientation="horizontal"');
expect(html).toContain('data-color-distribution="quantile"');
expect(html).toContain('data-color-easing="0.7"');
expect(html).toContain('data-color-theme="pico"');
expect(html).toContain('TypeScript');
expect(html).toContain('/tag/TypeScript/');
expect(html).toContain('/tag/Electron/');
expect(html).toContain('/tag/SQLite/');
expect(html).toContain('"color":"rgb(');
expect(html).toContain('"color":"red"');
expect(html).toContain('"color":"blue"');
expect(html).toContain('"count":3');
expect(html).toContain('"count":2');
expect(html).toContain('"count":1');
expect(html).not.toContain('"color"');
});
it('supports tag_cloud orientation parameter modes', async () => {