.test-runner-report { .runner-error-cards { min-width: 0; margin-block: 16px; } .runner-error-card { --issue-color: var(--runner-danger); --issue-bg: var(--runner-danger-soft); display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: 4px 8px; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--issue-color) 28%, transparent); border-radius: 12px; background: var(--issue-bg); color: var(--runner-text); font-size: 12px; line-height: 20px; &.is-warning { --issue-color: var(--runner-warning); --issue-bg: var(--runner-warning-soft); } > button { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; align-self: center; padding: 0; border: 1px solid color-mix(in srgb, var(--issue-color) 28%, transparent); border-radius: 8px; background: transparent; color: var(--issue-color); cursor: pointer; &:hover { background: color-mix(in srgb, var(--issue-color) 8%, transparent); } } } .runner-error-icon { display: block; width: 16px; height: 16px; background: url('./assets/issue-error.svg') no-repeat center; } .runner-error-card.is-warning .runner-error-icon { background-image: url('./assets/issue-warning.svg'); } .runner-error-content { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; column-gap: 8px; min-width: 0; overflow-wrap: anywhere; strong { color: var(--issue-color); font-size: 12px; font-weight: 600; } } .runner-error-body { grid-column: 1 / -1; min-width: 0; padding-left: 24px; overflow-wrap: anywhere; p { margin: 0; white-space: pre-wrap; } > * + * { margin-top: 8px; } > a { display: inline-block; } } .runner-error-reasons { margin: 0; padding-left: 18px; li + li { margin-top: 4px; } } .runner-error-reasons-more, .runner-error-details { > summary { width: fit-content; color: var(--runner-text); cursor: pointer; font-weight: 500; &:hover { text-decoration: underline; } &:focus-visible { outline: 2px solid var(--runner-primary); outline-offset: 2px; } } .when-open { display: none; } &[open] > summary { .when-open { display: inline; } .when-closed { display: none; } } > ul { margin-top: 8px; } } .runner-error-details-body { margin-top: 8px; .runner-error-detail { dl { margin: 0; } dl > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; } dt { color: var(--runner-muted); } dd { margin: 0; } p { margin: 8px 0 0; } section { margin-top: 12px; } h5 { margin: 0 0 8px; color: var(--runner-text); font-size: 12px; font-weight: 600; } } .runner-json-block { margin-top: 8px; border-radius: 8px; color: var(--runner-text); background: color-mix( in srgb, var(--issue-color) 6%, var(--runner-surface) ); pre { max-height: 240px; overflow: auto; border-radius: inherit; color: inherit; background: transparent; font-size: 12px; line-height: 20px; } } .runner-error-detail .runner-error-stack { max-height: 240px; padding: 12px; overflow: auto; overscroll-behavior: contain; section { margin: 0; } section + section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--runner-border); } pre { max-height: none; margin: 0; padding: 0; overflow: visible; } &:focus-visible { outline: 2px solid var(--runner-primary); outline-offset: 2px; } } } .runner-step-warning { margin-left: 6px; color: var(--runner-warning); font-size: 12px; } .runner-error-label { grid-column: 2; display: block; margin-top: 4px; color: var(--runner-muted); } .runner-error-more { display: block; width: fit-content; padding: 8px 0; border: 0; background: transparent; color: var(--runner-danger); font-size: 12px; font-weight: 600; cursor: pointer; &:hover { text-decoration: underline; } } .runner-issue-drawer { font-family: 'Report Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; .ant-drawer-mask { background: rgba(0, 0, 0, 0.5); } .ant-drawer-content-wrapper { max-width: 100vw; } .ant-drawer-content { color: var(--runner-text); background: var(--runner-surface); font-family: inherit; } .ant-drawer-header { min-height: 48px; padding: 12px 24px; border-bottom: 1px solid var(--runner-border); } .ant-drawer-header-title { flex-direction: row-reverse; } .ant-drawer-title { font-size: 16px; font-weight: 400; line-height: 24px; } .ant-drawer-close { width: 16px; height: 16px; margin: 0 0 0 16px; padding: 0; color: var(--runner-text); } .ant-drawer-body { padding: 24px 32px; } } .runner-issue-drawer-close { display: block; width: 16px; height: 16px; background: currentColor; mask: url('./assets/issue-close.svg') no-repeat center; } .runner-issue-drawer-list { display: grid; gap: 12px; } } .test-runner-report .runner-issue-information { min-width: 0; overflow-wrap: anywhere; } .test-runner-report .runner-information-body { min-width: 0; overflow-wrap: anywhere; } @media (max-width: 600px) { .test-runner-report .runner-issue-drawer .ant-drawer-body { padding: 20px 16px; } .test-runner-report .runner-detail-io-grid > section { grid-template-columns: minmax(0, 1fr); gap: 8px; } }