diff --git a/lib/content-services/content-node-selector/content-node-selector-panel.component.html b/lib/content-services/content-node-selector/content-node-selector-panel.component.html index 348c9648bd..9dd999a27c 100644 --- a/lib/content-services/content-node-selector/content-node-selector-panel.component.html +++ b/lib/content-services/content-node-selector/content-node-selector-panel.component.html @@ -42,6 +42,7 @@ [target]="documentList" [transform]="breadcrumbTransform" [folderNode]="breadcrumbFolderNode" + [root]="breadcrumbFolderTitle" data-automation-id="content-node-selector-content-breadcrumb"> diff --git a/lib/content-services/content-node-selector/content-node-selector-panel.component.ts b/lib/content-services/content-node-selector/content-node-selector-panel.component.ts index 941381de3f..857ff162d2 100644 --- a/lib/content-services/content-node-selector/content-node-selector-panel.component.ts +++ b/lib/content-services/content-node-selector/content-node-selector-panel.component.ts @@ -153,6 +153,7 @@ export class ContentNodeSelectorPanelComponent implements OnInit { inDialog: boolean = false; _chosenNode: Node = null; folderIdToShow: string | null = null; + breadcrumbFolderTitle: string | null = null; pagination: PaginationModel = this.DEFAULT_PAGINATION; @@ -234,6 +235,7 @@ export class ContentNodeSelectorPanelComponent implements OnInit { */ siteChanged(chosenSite: SiteEntry): void { this.siteId = chosenSite.entry.guid; + this.setTitleIfCustomSite(chosenSite); this.updateResults(); } @@ -409,4 +411,12 @@ export class ContentNodeSelectorPanelComponent implements OnInit { onNodeSelect(event: any): void { this.attemptNodeSelection(event.detail.node.entry); } + + setTitleIfCustomSite(site: SiteEntry) { + if (this.customResourcesService.isCustomSource(site.entry.guid)) { + this.breadcrumbFolderTitle = site.entry.title; + } else { + this.breadcrumbFolderTitle = null; + } + } } diff --git a/lib/content-services/content-node-selector/name-location-cell/name-location-cell.component.scss b/lib/content-services/content-node-selector/name-location-cell/name-location-cell.component.scss index 714f0d8b3f..be46c158cc 100644 --- a/lib/content-services/content-node-selector/name-location-cell/name-location-cell.component.scss +++ b/lib/content-services/content-node-selector/name-location-cell/name-location-cell.component.scss @@ -2,10 +2,8 @@ $foreground: map-get($theme, foreground); .adf-name-location-cell { + display: grid; &-location { - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; color: mat-color($foreground, base, 0.5); font-size: 12px; } diff --git a/lib/content-services/content-node-selector/name-location-cell/name-location-cell.component.ts b/lib/content-services/content-node-selector/name-location-cell/name-location-cell.component.ts index bc2a927adc..efccd124fe 100644 --- a/lib/content-services/content-node-selector/name-location-cell/name-location-cell.component.ts +++ b/lib/content-services/content-node-selector/name-location-cell/name-location-cell.component.ts @@ -21,8 +21,8 @@ import { DataRow } from '@alfresco/adf-core'; @Component({ selector: 'adf-name-location-cell', template: ` -
{{ name }}
-
{{ path }}
+
{{ name }}
+
{{ path }}
`, styleUrls: ['./name-location-cell.component.scss'], encapsulation: ViewEncapsulation.None, diff --git a/lib/core/datatable/components/datatable/datatable.component.html b/lib/core/datatable/components/datatable/datatable.component.html index 8b0a49affd..8c3c15fe7a 100644 --- a/lib/core/datatable/components/datatable/datatable.component.html +++ b/lib/core/datatable/components/datatable/datatable.component.html @@ -160,10 +160,12 @@
- - +
+ + +