>) =>
+ nameCell(value),
width: 0,
},
{
@@ -62,9 +77,7 @@ function Workflow({ bucketName }: { bucketName: string }) {
flex: 1,
textAlign: 'right',
},
- Cell: ({ value }) => {
- return value ? 'Active' : 'Inactive';
- },
+ Cell: ({ value }: { value: boolean }) => (value ? 'Active' : 'Inactive'),
width: 0,
},
];
diff --git a/src/react/endpoint/EndpointList.tsx b/src/react/endpoint/EndpointList.tsx
index abba89173..3d0647579 100644
--- a/src/react/endpoint/EndpointList.tsx
+++ b/src/react/endpoint/EndpointList.tsx
@@ -20,7 +20,7 @@ import { push } from 'connected-react-router';
import { spacing } from '@scality/core-ui/dist/style/theme';
import { Clipboard } from '../ui-elements/Clipboard';
import { AuthorizedAdvancedMetricsButton } from './AdvancedMetricsButton';
-import { Icon } from '@scality/core-ui';
+import { ConstrainedText, Icon, Stack, Wrap } from '@scality/core-ui';
type CellProps = {
row: {
original: Endpoint;
@@ -64,10 +64,15 @@ function EndpointList({ endpoints, locations }: Props) {
},
Cell({ value: hostName }: { value: Hostname }) {
return (
-
- {hostName}
+
+ {hostName}
+ }
+ lineClamp={2}
+ />
-
+
);
},
},
diff --git a/src/react/ui-elements/TableKeyValue2.tsx b/src/react/ui-elements/TableKeyValue2.tsx
index ac68ac7cc..267aa790e 100644
--- a/src/react/ui-elements/TableKeyValue2.tsx
+++ b/src/react/ui-elements/TableKeyValue2.tsx
@@ -129,13 +129,14 @@ export const KeyTooltip = ({
)}
);
-export const Value = styled.div<{ size?: string }>`
+export const Value = styled.div<{ size?: string; width?: string }>`
flex: ${(props) => props.size || '0.65'};
flex-direction: column;
i {
margin-right: ${spacing.sp8};
}
min-width: 0;
+ width: ${(props) => props.width};
`;
export const GroupValues = styled.div<{ size?: string }>`
display: flex;
diff --git a/src/react/workflow/WorkflowList.tsx b/src/react/workflow/WorkflowList.tsx
index 38f7ad254..edd2abf3c 100644
--- a/src/react/workflow/WorkflowList.tsx
+++ b/src/react/workflow/WorkflowList.tsx
@@ -8,7 +8,8 @@ import { Button } from '@scality/core-ui/dist/next';
import { TitleRow as TableHeader } from '../ui-elements/TableKeyValue';
import { useTheme } from 'styled-components';
import { Icon } from '@scality/core-ui/dist/components/icon/Icon.component';
-import { Row } from 'react-table';
+import { CoreUIColumn, Row } from 'react-table';
+import { ConstrainedText } from '@scality/core-ui';
const SEARCH_QUERY_PARAM = 'search';
export function WorkflowTypeIcon({ value: type }: { value: string }) {
@@ -37,7 +38,12 @@ function WorkflowList({ workflows, workflowId }: Props) {
const theme = useTheme();
function DataComponent({ row }: { row: Row }) {
- return {`${row.values.name}`} ;
+ return (
+ {`${row.values.name}`} }
+ lineClamp={2}
+ />
+ );
}
function RowAsync({ row }: { row: Row }) {
@@ -53,7 +59,7 @@ function WorkflowList({ workflows, workflowId }: Props) {
return row.id;
};
- const columns = [
+ const columns: CoreUIColumn[] = [
{
Header: 'Workflow Description',
accessor: 'name',