Upgrade to latest ADF beta & UI fixes (#1082)

* [ACA-2359] upgrade ADF to 3.2.0-beta7 version

* [ACA-2359] revert temporary fix because no more nested 'adf-datatable-cell' items coming from ADF

* [ACA-2359] remove no more needed styles related to [ADF-4401] issue

* [ACA-2359] clean-up unneeded styles - coming from new ADF version

* [ACA-2363] fix issue with text being visible underneath the info drawer

* [ACA-2359] fix ellipsis on locked_by text

* [ACA-2359] increase item select area

* [ACA-2331] fix destination picker custom source title

* [ACA-2331] fix destination picker column display

* min-width for adf-no-grow-cell
This commit is contained in:
Suzana Dirla
2019-04-23 14:57:48 +03:00
committed by Denys Vuika
parent 5788d1e7c4
commit 3f5e8815c3
6 changed files with 70 additions and 70 deletions

View File

@@ -100,8 +100,7 @@ export class ContextActionsDirective implements OnInit, OnDestroy {
}
private getTarget(event: MouseEvent): Element {
// change back to 'adf-datatable-cell' once the [ADF-4401] issue is fixed
return this.findAncestor(<Element>event.target, 'adf-datatable-cell--');
return this.findAncestor(<Element>event.target, 'adf-datatable-cell');
}
private isSelected(target: Element): boolean {
@@ -114,15 +113,12 @@ export class ContextActionsDirective implements OnInit, OnDestroy {
);
}
private findAncestor(el: Element, classNameString: string): Element {
if (el.classList.value.includes(classNameString)) {
private findAncestor(el: Element, className: string): Element {
if (el.classList.contains(className)) {
return el;
}
// tslint:disable-next-line:curly
while (
(el = el.parentElement) &&
!el.classList.value.includes(classNameString)
);
while ((el = el.parentElement) && !el.classList.contains(className));
return el;
}
}

View File

@@ -1,15 +1,19 @@
.aca-name-column-container {
aca-locked-by {
position: absolute;
top: 17px;
left: 7px;
display: flex;
align-items: center;
color: rgba(0, 0, 0, 0.54);
max-width: 100%;
padding: 0 10px;
.locked_by--name {
overflow: hidden;
text-overflow: ellipsis;
}
}
}
.aca-custom-name-column {
display: flex;
display: block;
align-items: center;
}