fix(ui/tickscript): make db names visible
parent
a5e342a266
commit
df2310923e
|
@ -32,6 +32,7 @@ class TickscriptEditorControls extends Component<Props> {
|
||||||
<MultiSelectDBDropdown
|
<MultiSelectDBDropdown
|
||||||
selectedItems={this.addName(task.dbrps)}
|
selectedItems={this.addName(task.dbrps)}
|
||||||
onApply={onSelectDbrps}
|
onApply={onSelectDbrps}
|
||||||
|
rightAligned={true}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -21,7 +21,7 @@ class MultiSelectDBDropdown extends Component {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {dbrps} = this.state
|
const {dbrps} = this.state
|
||||||
const {onApply, selectedItems} = this.props
|
const {onApply, selectedItems, rightAligned} = this.props
|
||||||
const label = 'Select databases'
|
const label = 'Select databases'
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -31,6 +31,7 @@ class MultiSelectDBDropdown extends Component {
|
||||||
onApply={onApply}
|
onApply={onApply}
|
||||||
isApplyShown={false}
|
isApplyShown={false}
|
||||||
selectedItems={selectedItems}
|
selectedItems={selectedItems}
|
||||||
|
rightAligned={rightAligned}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,10 +109,14 @@ class MultiSelectDropdown extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
renderMenu() {
|
renderMenu() {
|
||||||
const {items, isApplyShown} = this.props
|
const {items, isApplyShown, rightAligned} = this.props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ul className="dropdown-menu">
|
<ul
|
||||||
|
className={classnames('dropdown-menu', {
|
||||||
|
'dropdown--right': rightAligned,
|
||||||
|
})}
|
||||||
|
>
|
||||||
{isApplyShown && (
|
{isApplyShown && (
|
||||||
<li className="multi-select--apply">
|
<li className="multi-select--apply">
|
||||||
<button className="btn btn-xs btn-info" onClick={this.handleApply}>
|
<button className="btn btn-xs btn-info" onClick={this.handleApply}>
|
||||||
|
|
|
@ -189,6 +189,9 @@ $dropdown-purple-header: $c-potassium;
|
||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
|
&.dropdown--right {
|
||||||
|
right: 0px
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.dropdown.open {
|
.dropdown.open {
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
|
|
Loading…
Reference in New Issue