eventDrawer.tsx 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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/eventNavigation';
  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. `;
  43. export const EventNavigator = styled('div')`
  44. display: grid;
  45. grid-template-columns: 1fr auto;
  46. align-items: center;
  47. column-gap: ${space(1)};
  48. padding: ${space(0.75)} 24px;
  49. background: ${p => p.theme.background};
  50. z-index: 1;
  51. min-height: ${MIN_NAV_HEIGHT}px;
  52. box-shadow: ${p => p.theme.translucentBorder} 0 1px;
  53. `;
  54. export const EventDrawerBody = styled(DrawerBody)`
  55. overflow: auto;
  56. overscroll-behavior: contain;
  57. /* Move the scrollbar to the left edge */
  58. scroll-margin: 0 ${space(2)};
  59. direction: rtl;
  60. * {
  61. direction: ltr;
  62. }
  63. `;