mirror of
https://github.com/strapi/strapi.git
synced 2025-11-11 15:49:50 +00:00
CM: Add max length for stage names in the list-view
This commit is contained in:
parent
b4ec34d69e
commit
392fa438b7
@ -1,13 +1,14 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { Box, Flex, Typography } from '@strapi/design-system';
|
import { Box, Flex, Typography } from '@strapi/design-system';
|
||||||
|
import { pxToRem } from '@strapi/helper-plugin';
|
||||||
|
|
||||||
export function ReviewWorkflowsStageEE({ color, name }) {
|
export function ReviewWorkflowsStageEE({ color, name }) {
|
||||||
return (
|
return (
|
||||||
<Flex alignItems="center" gap={2}>
|
<Flex alignItems="center" gap={2} maxWidth={pxToRem(300)}>
|
||||||
<Box height={2} background={color} hasRadius width={2} />
|
<Box height={2} background={color} hasRadius shrink={0} width={2} />
|
||||||
|
|
||||||
<Typography fontWeight="regular" textColor="neutral700">
|
<Typography fontWeight="regular" textColor="neutral700" ellipsis>
|
||||||
{name}
|
{name}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user