diff --git a/client/app/scripts/components/topology-options.js b/client/app/scripts/components/topology-options.js index 046eff2d6..3ece378d1 100644 --- a/client/app/scripts/components/topology-options.js +++ b/client/app/scripts/components/topology-options.js @@ -101,6 +101,15 @@ class TopologyOptions extends React.Component { return (
+ {option.get('selectType') === 'union' && + + } {option.get('options').map(item => ( ))} - {option.get('selectType') === 'union' && - - }
); diff --git a/client/app/styles/_base.scss b/client/app/styles/_base.scss index d9efa1ca6..457a0fc91 100644 --- a/client/app/styles/_base.scss +++ b/client/app/styles/_base.scss @@ -1323,6 +1323,23 @@ a { } .topology-option { + &-wrapper { + display: inline-flex; + flex-wrap: wrap; + overflow: hidden; + max-height: 27px; + transition: max-height 0.5s 0s $base-ease; + &:hover { + height: auto; + max-height: calc((13px * 1.5 + 3px + 3px) * 8); // expand to display 8 rows + overflow: auto; + transition: max-height 0.5s 0s $base-ease; + } + .topology-option-action { + flex: 1 1 auto; + text-align: center; + } + } font-size: $font-size-small; &-action { @@ -1390,6 +1407,7 @@ a { border-radius: $border-radius-soft; border: 1px solid transparent; pointer-events: none; + max-width: 50%; } .sidebar-gridmode {