badgeDisplayName.tsx 497 B

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