spanSummaryControls.tsx 789 B

12345678910111213141516171819202122232425262728
  1. import styled from '@emotion/styled';
  2. import {DatePageFilter} from 'sentry/components/organizations/datePageFilter';
  3. import {EnvironmentPageFilter} from 'sentry/components/organizations/environmentPageFilter';
  4. import PageFilterBar from 'sentry/components/organizations/pageFilterBar';
  5. import {space} from 'sentry/styles/space';
  6. export default function SpanDetailsControls() {
  7. return (
  8. <FilterActions>
  9. <PageFilterBar condensed>
  10. <EnvironmentPageFilter />
  11. <DatePageFilter />
  12. </PageFilterBar>
  13. </FilterActions>
  14. );
  15. }
  16. const FilterActions = styled('div')`
  17. display: flex;
  18. justify-content: space-between;
  19. margin-bottom: ${space(2)};
  20. flex-direction: column;
  21. @media (min-width: ${p => p.theme.breakpoints.small}) {
  22. flex-direction: row;
  23. }
  24. `;