diff --git a/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/ApiConsole/CustomPadLock.jsx b/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/ApiConsole/CustomPadLock.jsx index fc6872f02db..252eb8fe269 100644 --- a/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/ApiConsole/CustomPadLock.jsx +++ b/portals/devportal/src/main/webapp/source/src/app/components/Apis/Details/ApiConsole/CustomPadLock.jsx @@ -32,6 +32,7 @@ const StyledTableCell = styled(TableCell)(() => ({ paddingLeft: '0', paddingTop: '0', textAlign: 'left', + verticalAlign: 'top', })); const StyledScopeCell = styled(TableCell)(() => ({ @@ -40,8 +41,15 @@ const StyledScopeCell = styled(TableCell)(() => ({ textAlign: 'left', borderBottom: 'none', overflow: 'hidden', - textOverflow: 'ellipsis', - whiteSpace: 'nowrap', + wordBreak: 'break-word', + whiteSpace: 'normal', +})); + +const ScrollContainer = styled('div')(() => ({ + maxHeight: '150px', + overflowY: 'scroll', + display: 'block', + width: '100%', })); /** @@ -136,16 +144,23 @@ function CustomPadLock(props) { defaultMessage='Scopes' /> - + {scopes.length > 0 && ( - scopes.map((scope, index) => ( - // eslint-disable-next-line react/no-array-index-key - - - {scope} - - - )) + + + + {scopes.map((scope) => ( + + + {scope} + + + ))} + +
+
)}