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:
Qi Shu 2019-03-15 17:30:47 -07:00 committed by Clint Wylie
parent a337f6d4cc
commit fdbbf82cda
3 changed files with 14 additions and 3 deletions

View File

@ -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;
} }

View File

@ -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;

View File

@ -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}&nbsp; {text}&nbsp;
<a onClick={() => this.setState({retentionDialogOpenOn: { datasource: row.original.datasource, rules: row.original.rules }})}>&#x270E;</a> <a>&#x270E;</a>
</span>; </span>;
} }
}, },