fix(datahub): moved all charts in one line
Deploy / Test, build & deploy (push) Successful in 2m17s Details

This commit is contained in:
Binh 2026-08-24 16:20:21 +02:00
parent c179ac1b2c
commit 7a96ed3ae1
2 changed files with 8 additions and 0 deletions

View File

@ -5,3 +5,9 @@
grid-template-columns: repeat(auto-fill, var(--tile-compact-width));
justify-content: start;
}
@media (min-width: 1101px) {
.datahub-reference-controls {
grid-template-columns: repeat(6, minmax(0, 1fr));
}
}

View File

@ -7,6 +7,7 @@ import { DatahubHistoryOverview } from '../../src/features/project-import/Datahu
const datahubStyles = readFileSync(new URL('../../src/styles/datahub-redesign.css', import.meta.url), 'utf8');
const datahubTableStyles = readFileSync(new URL('../../src/styles/datahub.css', import.meta.url), 'utf8');
const componentStyles = readFileSync(new URL('../../src/styles/components.css', import.meta.url), 'utf8');
const tileContractStyles = readFileSync(new URL('../../src/styles/tile-contract.css', import.meta.url), 'utf8');
const tokens = readFileSync(new URL('../../src/styles/ui-tokens.css', import.meta.url), 'utf8');
const overview = readFileSync(new URL('../../src/features/project-import/DatahubHistoryOverview.tsx', import.meta.url), 'utf8');
const donut = readFileSync(new URL('../../src/components/DonutMetricCard/DonutMetricCard.tsx', import.meta.url), 'utf8');
@ -47,6 +48,7 @@ describe('Datahub centered reference rack layout', () => {
expect(componentStyles).toContain('Verbindlicher Donut-Standard: Referenz vom 2026-08-05.');
expect(componentStyles).toContain('grid-template-columns: repeat(6, minmax(0, 1fr));');
expect(tileContractStyles).toMatch(/@media \(min-width: 1101px\)\s*\{\s*\.datahub-reference-controls\s*\{[^}]*grid-template-columns:\s*repeat\(6, minmax\(0, 1fr\)\);/s);
expect(componentStyles).toContain('padding: var(--segment-inset);');
expect(componentStyles).toContain('.donut-metric-card::before');
expect(componentStyles).toContain('border-radius: var(--tile-radius);');