mirror of
https://github.com/strapi/strapi.git
synced 2025-12-26 14:44:31 +00:00
Merge pull request #16588 from strapi/feature/review-workflow-1-fix-color-badge
Settings: Fix color badge with long stage names
This commit is contained in:
commit
b4ec34d69e
@ -1,7 +1,7 @@
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { components } from 'react-select';
|
||||
import { Box, Flex, Typography } from '@strapi/design-system';
|
||||
import { Flex, Typography } from '@strapi/design-system';
|
||||
|
||||
export function OptionColor({ children, ...props }) {
|
||||
const { color } = props.data;
|
||||
@ -9,7 +9,7 @@ export function OptionColor({ children, ...props }) {
|
||||
return (
|
||||
<components.Option {...props}>
|
||||
<Flex alignItems="center" gap={2}>
|
||||
<Box height={2} background={color} hasRadius width={2} />
|
||||
<Flex height={2} background={color} hasRadius shrink={0} width={2} />
|
||||
|
||||
<Typography textColor="neutral800" ellipsis>
|
||||
{children}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { components } from 'react-select';
|
||||
import { Box, Flex, Typography } from '@strapi/design-system';
|
||||
import { Flex, Typography } from '@strapi/design-system';
|
||||
|
||||
export function SingleValueColor({ children, ...props }) {
|
||||
const { color } = props.data;
|
||||
@ -9,7 +9,7 @@ export function SingleValueColor({ children, ...props }) {
|
||||
return (
|
||||
<components.SingleValue {...props}>
|
||||
<Flex alignItems="center" gap={2}>
|
||||
<Box height={2} background={color} hasRadius width={2} />
|
||||
<Flex height={2} background={color} hasRadius shrink={0} width={2} />
|
||||
|
||||
<Typography textColor="neutral800" ellipsis>
|
||||
{children}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user