Files
2024-02-15 17:01:50 +00:00

37 lines
903 B
TypeScript

import type {Theme} from '@emotion/react';
import styled from '@emotion/styled';
import {space} from 'sentry/styles/space';
export const ErrorMessageTitle = styled('div')`
display: flex;
justify-content: space-between;
`;
export const ErrorMessageContent = styled('div')<{excludeLevel?: boolean}>`
display: grid;
align-items: center;
grid-template-columns: ${p => (p.excludeLevel ? '16px auto' : '16px 72px auto')};
gap: ${space(0.75)};
margin-top: ${space(0.75)};
`;
export const ErrorDot = styled('div')<{level: keyof Theme['level']}>`
background-color: ${p => p.theme.level[p.level]};
content: '';
width: ${space(1)};
min-width: ${space(1)};
height: ${space(1)};
margin-right: ${space(1)};
border-radius: 100%;
flex: 1;
`;
export const ErrorLevel = styled('span')`
width: 80px;
`;
export const ErrorTitle = styled('span')`
${p => p.theme.overflowEllipsis};
`;