From a199b1c3f73d6d6a32777b2ecf5e2f0a0c75d348 Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 23 Feb 2021 16:20:42 -0500 Subject: [PATCH] a little cleanup on the navigation for the workflow specs. --- src/app/app.module.ts | 58 +++++++------- .../workflow-spec-list.component.html | 79 +++++++++++-------- .../workflow-spec-list.component.scss | 7 ++ 3 files changed, 82 insertions(+), 62 deletions(-) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index f255d93..64586a5 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -52,6 +52,7 @@ import {WorkflowSpecCardComponent} from './workflow-spec-card/workflow-spec-card import {WorkflowSpecListComponent} from './workflow-spec-list/workflow-spec-list.component'; import {MatSidenavModule} from '@angular/material/sidenav'; import { ConfirmDialogComponent } from './_dialogs/confirm-dialog/confirm-dialog.component'; +import {MatExpansionModule} from '@angular/material/expansion'; @Injectable() export class ThisEnvironment implements AppEnvironment { @@ -103,34 +104,35 @@ export function getBaseHref(platformLocation: PlatformLocation): string { ReferenceFilesComponent, ConfirmDialogComponent, ], - imports: [ - BrowserAnimationsModule, - BrowserModule, - FlexLayoutModule, - FormlyModule, - FormsModule, - HttpClientModule, - MatBottomSheetModule, - MatButtonModule, - MatCardModule, - MatDialogModule, - MatDividerModule, - MatIconModule, - MatInputModule, - MatListModule, - MatMenuModule, - MatSnackBarModule, - MatTabsModule, - MatToolbarModule, - MatTooltipModule, - ReactiveFormsModule, - SartographyFormsModule, - SartographyPipesModule, - SartographyWorkflowLibModule, - AppRoutingModule, - MatSidenavModule, - // <-- This line MUST be last (https://angular.io/guide/router#module-import-order-matters) - ], + imports: [ + BrowserAnimationsModule, + BrowserModule, + FlexLayoutModule, + FormlyModule, + FormsModule, + HttpClientModule, + MatBottomSheetModule, + MatButtonModule, + MatCardModule, + MatDialogModule, + MatDividerModule, + MatIconModule, + MatInputModule, + MatListModule, + MatMenuModule, + MatSnackBarModule, + MatTabsModule, + MatToolbarModule, + MatTooltipModule, + ReactiveFormsModule, + SartographyFormsModule, + SartographyPipesModule, + SartographyWorkflowLibModule, + AppRoutingModule, + MatSidenavModule, + MatExpansionModule, + // <-- This line MUST be last (https://angular.io/guide/router#module-import-order-matters) + ], bootstrap: [AppComponent], entryComponents: [ DeleteFileDialogComponent, diff --git a/src/app/workflow-spec-list/workflow-spec-list.component.html b/src/app/workflow-spec-list/workflow-spec-list.component.html index 90ab1d2..6a98abe 100644 --- a/src/app/workflow-spec-list/workflow-spec-list.component.html +++ b/src/app/workflow-spec-list/workflow-spec-list.component.html @@ -24,11 +24,50 @@ + + -
-

{{cat.display_name}} ({{cat.name}})

-
+ + + + {{cat.display_name}} + + + ({{cat.name}}) + + + + + {{wfs.display_name}} + + + + + + + + +
No workflow specs in this category
+ @@ -54,40 +93,12 @@ (click)="confirmDeleteWorkflowSpecCategory(cat)"> delete -
-
- - - {{wfs.display_name}} - - - - - - - + + -
No workflow specs in this category
+
diff --git a/src/app/workflow-spec-list/workflow-spec-list.component.scss b/src/app/workflow-spec-list/workflow-spec-list.component.scss index 7f38d29..2dd4f58 100644 --- a/src/app/workflow-spec-list/workflow-spec-list.component.scss +++ b/src/app/workflow-spec-list/workflow-spec-list.component.scss @@ -32,9 +32,13 @@ } +.mat-list-base .mat-list-item, .mat-list-base .mat-list-option { + height: auto; +} .workflow-spec { border-left: 4px solid $brand-gray-light; + font-size: 1em; &:hover { border-left: 4px solid $brand-primary; background-color: $brand-primary-tint-4; @@ -48,6 +52,9 @@ width: 300px; margin-left: 20px; } + .spec-selected { + font-weight: bold; + } .spec-actions { width: 100px; opacity: 0;