Skip to content

Commit

Permalink
Fix up siblings dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
floogulinc committed Jun 19, 2024
1 parent e12bc4d commit 9aa312f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
<h1 mat-dialog-title>Siblings and Parents</h1>
<div mat-dialog-content>

@if (siblingsAndParents$ | async; as siblingsAndParents) {
<div>
<mat-tab-group animationDuration="0ms" dynamicHeight>
@for (service of siblingsAndParents | orderBy: 'serviceName' | orderBy: '-serviceType'; track service.serviceKey) {
<mat-tab [label]="service.serviceName">
<ng-template matTabContent>
<mat-tab-group animationDuration="0ms" dynamicHeight>
@for (service of siblingsAndParents | orderBy: 'serviceName' | orderBy: '-serviceType'; track service.serviceKey) {
<mat-tab [label]="service.serviceName">
<ng-template matTabContent>
<div class="tag-accordion-wrapper">
<mat-accordion multi>
<mat-expansion-panel expanded>
<mat-expansion-panel>
<mat-expansion-panel-header>
Ideal
</mat-expansion-panel-header>
<mat-chip-listbox class="mat-mdc-chip-set-stacked tag-chip-list" aria-orientation="vertical" aria-label="File tags" [selectable]="false">
<mat-chip-option
class="theming tag-chip tag-color"
[attr.data-tag-namespace]="service.ideal_tag| tagNamespace"
[attr.data-tag-namespace]="service.ideal_tag | tagNamespace"
[matMenuTriggerFor]="tagMenu"
[matMenuTriggerData]="{tag: service.ideal_tag}"
>
Expand Down Expand Up @@ -81,11 +80,11 @@ <h1 mat-dialog-title>Siblings and Parents</h1>
</ng-template>
</mat-expansion-panel>
</mat-accordion>
</ng-template>
</mat-tab>
}
</mat-tab-group>
</div>
</div>
</ng-template>
</mat-tab>
}
</mat-tab-group>
} @else {
<mat-spinner></mat-spinner>
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.tag-accordion-wrapper {
margin-top: 8px;
padding: 4px;
}
6 changes: 5 additions & 1 deletion src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,13 @@ mat-icon.mat-mdc-card-avatar {
}


:root {
.theming {
// restores old behavior that was set on each dialog container element
--mat-dialog-container-max-width: 80vw;

// set dialog container to same as bottom sheet container
--mdc-dialog-container-color: var(--sys-surface-container-low);
//--mat-bottom-sheet-container-background-color: var(--sys-surface-container-low);
}

// --------------------------------------------------------------------------------
Expand Down

0 comments on commit 9aa312f

Please sign in to comment.