This is an automated email from the ASF dual-hosted git repository. hshpak pushed a commit to branch fix/Libs-problem in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit 8529e324bd3d909fc71a436ff56a02451d4329b9 Author: Hennadii_Shpak <[email protected]> AuthorDate: Tue Jul 19 11:59:51 2022 +0300 fixed sorting for libraries --- .../image-detail-dialog/image-detail-dialog.component.scss | 6 ++++-- .../image-detail-dialog/image-detail-dialog.component.ts | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/image-detail-dialog/image-detail-dialog.component.scss b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/image-detail-dialog/image-detail-dialog.component.scss index c73b2d111..4964c9590 100644 --- a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/image-detail-dialog/image-detail-dialog.component.scss +++ b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/image-detail-dialog/image-detail-dialog.component.scss @@ -26,12 +26,14 @@ display: flex; justify-content: space-between; padding: 10px 0; -} -.content-box > div { &:not(:last-child) { border-bottom: 1px solid #edf1f5; } + + &.image__description--wrapper { + padding: 0 0 10px 0; + } } .modal-row__item { diff --git a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/image-detail-dialog/image-detail-dialog.component.ts b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/image-detail-dialog/image-detail-dialog.component.ts index d34d6c1dd..1894f5763 100644 --- a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/image-detail-dialog/image-detail-dialog.component.ts +++ b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/image-detail-dialog/image-detail-dialog.component.ts @@ -22,6 +22,7 @@ import {MAT_DIALOG_DATA, MatDialog, MatDialogRef} from '@angular/material/dialog import {Library, ModalData} from '../../images'; import {LibraryInfoModalComponent} from '../library-info-modal/library-info-modal.component'; + @Component({ selector: 'datalab-image-detail-dialog', templateUrl: './image-detail-dialog.component.html', @@ -70,7 +71,7 @@ export class ImageDetailDialogComponent implements OnInit { return acc; }, []) .map(item => { - item.libs.sort(); + item.libs.sort((a, b) => a.toLowerCase() > b.toLowerCase() ? 1 : -1); return item; }); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
