rowTitle.tsx 739 B

1234567891011121314151617181920212223242526272829303132
  1. import styled from '@emotion/styled';
  2. import {ROW_HEIGHT} from 'sentry/components/performance/waterfall/constants';
  3. export const RowTitleContainer = styled('div')`
  4. display: flex;
  5. align-items: center;
  6. height: ${ROW_HEIGHT}px;
  7. position: absolute;
  8. left: 0;
  9. top: 0;
  10. width: 100%;
  11. user-select: none;
  12. `;
  13. export const RowTitle = styled('div')`
  14. position: relative;
  15. height: 100%;
  16. font-size: ${p => p.theme.fontSizeSmall};
  17. white-space: nowrap;
  18. display: flex;
  19. flex: 1;
  20. align-items: center;
  21. `;
  22. export const RowTitleContent = styled('span')<{errored: boolean}>`
  23. color: ${p => (p.errored ? p.theme.error : 'inherit')};
  24. `;
  25. export const SpanGroupRowTitleContent = styled('span')`
  26. color: ${p => p.theme.linkColor};
  27. `;