badgeDisplayName.tsx 464 B

123456789101112131415161718
  1. import {css} from '@emotion/react';
  2. import styled from '@emotion/styled';
  3. import space from 'sentry/styles/space';
  4. const BadgeDisplayName = styled('span')<{hideOverflow?: string | boolean}>`
  5. ${p =>
  6. p.hideOverflow &&
  7. css`
  8. ${p.theme.overflowEllipsis};
  9. max-width: ${typeof p.hideOverflow === 'string'
  10. ? p.hideOverflow
  11. : p.theme.settings.maxCrumbWidth};
  12. `};
  13. padding: ${space(0.25)} 0;
  14. `;
  15. export default BadgeDisplayName;