Skip to content

Commit 36a272b

Browse files
author
Kristiyan Ivanov
authored
RI-7249 - RDI---Connection-test-results-are-broken (#4790)
1 parent c355c70 commit 36a272b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

redisinsight/ui/src/pages/rdi/pipeline-management/components/test-connections-table/TestConnectionsTable.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
import React from 'react'
2+
import styled from 'styled-components'
23
import { Table, ColumnDefinition } from 'uiSrc/components/base/layout/table'
34

45
import { IRdiConnectionResult } from 'uiSrc/slices/interfaces'
56

67
import styles from './styles.module.scss'
78

9+
const PreWrapText = styled.div<React.HTMLAttributes<HTMLDivElement>>`
10+
white-space: pre-wrap;
11+
`
12+
813
export interface Props {
914
data: Array<IRdiConnectionResult>
1015
}
@@ -32,9 +37,9 @@ const TestConnectionsTable = (props: Props) => {
3237
original: { target, error },
3338
},
3439
}) => (
35-
<div data-testid={`table-result-${target}`}>
40+
<PreWrapText data-testid={`table-result-${target}`}>
3641
{error || 'Successful'}
37-
</div>
42+
</PreWrapText>
3843
),
3944
},
4045
]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.tableWrapper {
22
max-height: calc(100vh - 282px);
3+
padding: 1px;
34
@include eui.scrollBar;
45
overflow: auto;
56
}

0 commit comments

Comments
 (0)