Skip to content

Commit

Permalink
[ACS-9012] Truncate name column and navigation menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKinas committed Dec 5, 2024
1 parent d49522a commit 750f4f4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 0 additions & 4 deletions extension.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -606,10 +606,6 @@
"description": "Display column only for large screens",
"type": "boolean"
},
"truncated": {
"description": "Should text in the column be truncated?",
"type": "boolean"
},
"maxTextLength": {
"description": "Maximum text length before truncation",
"type": "number"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export const savedSearchesListSchema = {
title: 'APP.BROWSE.SEARCH.SAVE_SEARCH.LIST.NAME',
class: 'adf-ellipsis-cell',
sortable: false,
draggable: false
draggable: false,
maxTextLength: 250
},
{
type: 'text',
Expand All @@ -39,7 +40,7 @@ export const savedSearchesListSchema = {
class: 'adf-ellipsis-cell',
sortable: false,
draggable: false,
truncated: true
maxTextLength: 250
}
]
};
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export class SaveSearchSidenavComponent implements OnInit {
id: 'search' + child.name,
icon: '',
title: child.name,
description: child.name,
route: `search?q=${child.encodedUrl}`,
url: `search?q=${child.encodedUrl}`
}))
Expand All @@ -78,6 +79,7 @@ export class SaveSearchSidenavComponent implements OnInit {
id: this.manageSearchesId,
icon: '',
title: 'APP.BROWSE.SEARCH.SAVE_SEARCH.NAVBAR.MANAGE_BUTTON',
description: 'APP.BROWSE.SEARCH.SAVE_SEARCH.NAVBAR.MANAGE_BUTTON',
route: 'saved-searches',
url: 'saved-searches'
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import '@alfresco/adf-core/lib/styles/mat-selectors';

.aca-sidenav {
display: flex;
flex: 1;
Expand Down Expand Up @@ -108,6 +110,11 @@
line-height: 32px;
justify-content: start;

#{$mat-button-label} {
overflow: hidden;
text-overflow: ellipsis;
}

&--active {
color: var(--theme-sidenav-active-text-color);
background: var(--theme-selected-background-color);
Expand Down

0 comments on commit 750f4f4

Please sign in to comment.