mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
21 lines
486 B
TypeScript
21 lines
486 B
TypeScript
import {css} from '@emotion/react';
|
|
import styled from '@emotion/styled';
|
|
|
|
import {space} from 'sentry/styles/space';
|
|
|
|
const BadgeDisplayName = styled('span')<{hideOverflow?: string | boolean}>`
|
|
${p =>
|
|
p.hideOverflow &&
|
|
css`
|
|
${p.theme.overflowEllipsis};
|
|
max-width: ${
|
|
typeof p.hideOverflow === 'string'
|
|
? p.hideOverflow
|
|
: p.theme.settings.maxCrumbWidth
|
|
};
|
|
`};
|
|
padding: ${space(0.25)} 0;
|
|
`;
|
|
|
|
export default BadgeDisplayName;
|