mirror of https://github.com/apache/druid.git
Fixed bugs in retention cell and retention dialog (#7276)
* Fixed a bug when there are so many retention rules that it becomes unclickable; fixed a bug when retention dialog is at bottom and becomes unreachable * Using class for CSS instead of inline style
This commit is contained in:
parent
a337f6d4cc
commit
fdbbf82cda
|
@ -18,12 +18,16 @@
|
||||||
|
|
||||||
.retention-dialog {
|
.retention-dialog {
|
||||||
width: 750px;
|
width: 750px;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%) !important;
|
||||||
|
|
||||||
.dialog-body {
|
.dialog-body {
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
max-height: 70vh;
|
max-height: 70vh;
|
||||||
|
|
||||||
.bp3-form-group {
|
.form-group {
|
||||||
margin: 0 0 5px;
|
margin: 0 0 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,10 @@
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
.clickable-cell {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
.ReactTable {
|
.ReactTable {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50px;
|
top: 50px;
|
||||||
|
|
|
@ -362,9 +362,12 @@ GROUP BY 1`);
|
||||||
text = DatasourcesView.formatRules(rules);
|
text = DatasourcesView.formatRules(rules);
|
||||||
}
|
}
|
||||||
|
|
||||||
return <span>
|
return <span
|
||||||
|
onClick={() => this.setState({retentionDialogOpenOn: { datasource: row.original.datasource, rules: row.original.rules }})}
|
||||||
|
className={"clickable-cell"}
|
||||||
|
>
|
||||||
{text}
|
{text}
|
||||||
<a onClick={() => this.setState({retentionDialogOpenOn: { datasource: row.original.datasource, rules: row.original.rules }})}>✎</a>
|
<a>✎</a>
|
||||||
</span>;
|
</span>;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue