detailList.tsx 373 B

123456789101112131415161718
  1. import styled from '@emotion/styled';
  2. import {space} from 'sentry/styles/space';
  3. type Props = {
  4. maxLabelSize?: number;
  5. };
  6. const DetailList = styled('dl')<Props>`
  7. display: grid;
  8. gap: ${space(1)};
  9. grid-template-columns:
  10. minmax(${p => (p.maxLabelSize ? `${p.maxLabelSize}px` : '110px')}, max-content)
  11. 1fr;
  12. margin-bottom: 0;
  13. `;
  14. export default DetailList;