eventDrawer.tsx 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import styled from '@emotion/styled';
  2. import {Breadcrumbs as NavigationBreadcrumbs} from 'sentry/components/breadcrumbs';
  3. import {DrawerBody, DrawerHeader} from 'sentry/components/globalDrawer/components';
  4. import {InputGroup} from 'sentry/components/inputGroup';
  5. import {space} from 'sentry/styles/space';
  6. import {MIN_NAV_HEIGHT} from 'sentry/views/issueDetails/streamline/eventTitle';
  7. export const Header = styled('h3')`
  8. display: block;
  9. font-size: ${p => p.theme.fontSizeExtraLarge};
  10. font-weight: ${p => p.theme.fontWeightBold};
  11. margin: 0;
  12. `;
  13. export const SearchInput = styled(InputGroup.Input)`
  14. border: 0;
  15. box-shadow: unset;
  16. color: inherit;
  17. `;
  18. export const NavigationCrumbs = styled(NavigationBreadcrumbs)`
  19. margin: 0;
  20. padding: 0;
  21. `;
  22. export const CrumbContainer = styled('div')`
  23. display: flex;
  24. gap: ${space(1)};
  25. align-items: center;
  26. `;
  27. export const ShortId = styled('div')`
  28. font-family: ${p => p.theme.text.family};
  29. font-size: ${p => p.theme.fontSizeMedium};
  30. line-height: 1;
  31. `;
  32. export const EventDrawerContainer = styled('div')`
  33. height: 100%;
  34. display: grid;
  35. grid-template-rows: auto auto 1fr;
  36. `;
  37. export const EventDrawerHeader = styled(DrawerHeader)`
  38. position: unset;
  39. max-height: ${MIN_NAV_HEIGHT}px;
  40. box-shadow: none;
  41. border-bottom: 1px solid ${p => p.theme.border};
  42. overflow: hidden;
  43. text-overflow: ellipsis;
  44. max-width: 100%;
  45. `;
  46. export const EventNavigator = styled('div')`
  47. display: grid;
  48. grid-template-columns: 1fr auto;
  49. align-items: center;
  50. column-gap: ${space(1)};
  51. padding: ${space(0.75)} 24px;
  52. background: ${p => p.theme.background};
  53. z-index: 1;
  54. min-height: ${MIN_NAV_HEIGHT}px;
  55. box-shadow: ${p => p.theme.translucentBorder} 0 1px;
  56. `;
  57. export const EventDrawerBody = styled(DrawerBody)`
  58. overflow: auto;
  59. overscroll-behavior: contain;
  60. /* Move the scrollbar to the left edge */
  61. scroll-margin: 0 ${space(2)};
  62. direction: rtl;
  63. * {
  64. direction: ltr;
  65. }
  66. `;