Skip to content

Commit

Permalink
feat(testing-lib): improve display
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzofox3 committed Dec 21, 2023
1 parent 6d5912f commit 6a8b3af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/test-lib/src/client/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@ export class Diagnostic extends HTMLElement {
}
}

const prettyPrint = (value) => JSON.stringify(value, null, 4);
const prettyPrint = (value) => JSON.stringify(value, null, 2);
6 changes: 5 additions & 1 deletion packages/test-lib/src/client/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
--flag-success-color: #1a751a;
--flag-failure-color: #ef4d4d;
--code-block-bg-color: #ececec;
--spacing: 1em;
--spacing: 0.75em;
}

@media (prefers-color-scheme: light) {
Expand Down Expand Up @@ -128,6 +128,7 @@ zora-diagnostic pre {
border-radius: 4px;
box-shadow: 0 0 2px 0 color-mix(in srgb, black 70%, var(--_bg-color)) inset;
overflow: scroll;
flex-grow: 1;
}

zora-diagnostic summary {
Expand Down Expand Up @@ -175,5 +176,8 @@ zora-diagnostic figure {
flex-grow: 1;
max-width: 100%;
flex-basis: calc((100% - var(--_spacing)) / 2);
display: flex;
flex-direction: column;
}


0 comments on commit 6a8b3af

Please sign in to comment.