-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ffdc9d2
commit 28eabdd
Showing
15 changed files
with
178 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/app/visuall/popups/legend-modal/legend-modal.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.modal-header { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
.modal-body { | ||
padding: 20px; /* Adjust as needed */ | ||
} | ||
|
||
.legend-container { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-around; | ||
} | ||
|
||
.legend-item { | ||
text-align: center; | ||
} | ||
|
||
|
||
.legend-item2 img { | ||
max-width: 100%; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.legend-item1 img { | ||
max-width: 70%; | ||
margin-bottom: 10px; | ||
} | ||
|
21 changes: 21 additions & 0 deletions
21
src/app/visuall/popups/legend-modal/legend-modal.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- Modal legend --> | ||
<div class="modal-header"> | ||
<div class="modal-title va-heading1 text-center">Legend</div> | ||
<div> | ||
<button #closeBtn type="button" class="btn-close" data-dismiss="modal" aria-label="Close" | ||
(click)="activeModal.dismiss('Cross click')"></button> | ||
</div> | ||
</div> | ||
<div class="modal-body text-center"> | ||
<div class="legend-container"> | ||
<div class="legend-item1"> | ||
<div class="va-heading1">Nodes</div> | ||
<img src="assets/img/legend/nodes.svg" title="Node types"> | ||
|
||
</div> | ||
<div class="legend-item2"> | ||
<div class="va-heading1">Edges</div> | ||
<img src="assets/img/legend/edges.svg" title="Edge types"> | ||
</div> | ||
</div> | ||
</div> |
18 changes: 18 additions & 0 deletions
18
src/app/visuall/popups/legend-modal/legend-modal.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Component, ViewChild, AfterViewChecked, ElementRef } from '@angular/core'; | ||
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; | ||
|
||
@Component({ | ||
selector: 'legend-modal', | ||
templateUrl: './legend-modal.component.html', | ||
styleUrls: ['./legend-modal.component.css'] | ||
}) | ||
export class LegendModalComponent implements AfterViewChecked { | ||
@ViewChild('closeBtn', { static: false }) closeBtnRef: ElementRef; | ||
|
||
constructor(public activeModal: NgbActiveModal) { } | ||
|
||
ngAfterViewChecked() { | ||
this.closeBtnRef.nativeElement.blur(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.