import styled from '@emotion/styled'; import {Breadcrumbs as NavigationBreadcrumbs} from 'sentry/components/breadcrumbs'; import {DrawerBody, DrawerHeader} from 'sentry/components/globalDrawer/components'; import {InputGroup} from 'sentry/components/inputGroup'; import {space} from 'sentry/styles/space'; import {MIN_NAV_HEIGHT} from 'sentry/views/issueDetails/streamline/eventNavigation'; export const Header = styled('h3')` display: block; font-size: ${p => p.theme.fontSizeExtraLarge}; font-weight: ${p => p.theme.fontWeightBold}; margin: 0; `; export const SearchInput = styled(InputGroup.Input)` border: 0; box-shadow: unset; color: inherit; `; export const NavigationCrumbs = styled(NavigationBreadcrumbs)` margin: 0; padding: 0; `; export const CrumbContainer = styled('div')` display: flex; gap: ${space(1)}; align-items: center; `; export const ShortId = styled('div')` font-family: ${p => p.theme.text.family}; font-size: ${p => p.theme.fontSizeMedium}; line-height: 1; `; export const EventDrawerContainer = styled('div')` height: 100%; display: grid; grid-template-rows: auto auto 1fr; `; export const EventDrawerHeader = styled(DrawerHeader)` position: unset; max-height: ${MIN_NAV_HEIGHT}px; box-shadow: none; border-bottom: 1px solid ${p => p.theme.border}; `; export const EventNavigator = styled('div')` display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: ${space(1)}; padding: ${space(0.75)} 24px; background: ${p => p.theme.background}; z-index: 1; min-height: ${MIN_NAV_HEIGHT}px; box-shadow: ${p => p.theme.translucentBorder} 0 1px; `; export const EventDrawerBody = styled(DrawerBody)` overflow: auto; overscroll-behavior: contain; /* Move the scrollbar to the left edge */ scroll-margin: 0 ${space(2)}; direction: rtl; * { direction: ltr; } `;