diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ef2a28c73..cfe7a88b6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Cleanup get_report function in gsad [#1263](https://github.com/greenbone/gsa/pull/1263) ### Fixed +- Fix list of excluded hosts formatting [#1340](https://github.com/greenbone/gsa/pull/1340) - Fix installation of locale files [#1330](https://github.com/greenbone/gsa/pull/1330) - Fix list of options of possible Filter types [#1326](https://github.com/greenbone/gsa/pull/1326) - Fix timezone handling at performance page [#1325](https://github.com/greenbone/gsa/pull/1325) diff --git a/gsa/src/web/pages/targets/details.js b/gsa/src/web/pages/targets/details.js index bce749441a..b02be2c327 100644 --- a/gsa/src/web/pages/targets/details.js +++ b/gsa/src/web/pages/targets/details.js @@ -33,7 +33,7 @@ import DetailsLink from 'web/components/link/detailslink'; import InfoTable from 'web/components/table/infotable'; import TableBody from 'web/components/table/body'; -import TableData from 'web/components/table/data'; +import TableData, {TableDataAlignTop} from 'web/components/table/data'; import TableRow from 'web/components/table/row'; import DetailsBlock from 'web/entity/block'; @@ -61,6 +61,10 @@ const TargetDetails = ({capabilities, entity, links = true}) => { .slice(0, MAX_HOSTS_LISTINGS) .map(host => {host}); + const excludeHostsListing = exclude_hosts + .slice(0, MAX_HOSTS_LISTINGS) + .map(host => {host}); + return ( @@ -71,7 +75,7 @@ const TargetDetails = ({capabilities, entity, links = true}) => { - {_('Included')} + {_('Included')} {hostsListing} @@ -82,12 +86,11 @@ const TargetDetails = ({capabilities, entity, links = true}) => { {exclude_hosts.length > 0 && ( - {_('Excluded')} + {_('Excluded')} - - {exclude_hosts.map(host => ( - {host} - ))} + + {excludeHostsListing} + {exclude_hosts.length > MAX_HOSTS_LISTINGS && '[...]'}