mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 01:31:17 +00:00
Hover to expand topology option if the list exceeds the max width
This commit is contained in:
@@ -101,6 +101,15 @@ class TopologyOptions extends React.Component {
|
||||
return (
|
||||
<div className="topology-option" key={optionId}>
|
||||
<div className="topology-option-wrapper">
|
||||
{option.get('selectType') === 'union' &&
|
||||
<TopologyOptionAction
|
||||
onClick={this.handleNoneClick}
|
||||
optionId={optionId}
|
||||
item={noneItem}
|
||||
topologyId={currentTopologyId}
|
||||
activeValue={activeValue}
|
||||
/>
|
||||
}
|
||||
{option.get('options').map(item => (
|
||||
<TopologyOptionAction
|
||||
onClick={this.handleOptionClick}
|
||||
@@ -111,15 +120,6 @@ class TopologyOptions extends React.Component {
|
||||
item={item}
|
||||
/>
|
||||
))}
|
||||
{option.get('selectType') === 'union' &&
|
||||
<TopologyOptionAction
|
||||
onClick={this.handleNoneClick}
|
||||
optionId={optionId}
|
||||
item={noneItem}
|
||||
topologyId={currentTopologyId}
|
||||
activeValue={activeValue}
|
||||
/>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user