diff --git a/dashboard/src/app/dashboard/dashboard.component.css b/dashboard/src/app/dashboard/dashboard.component.css index 2ecca97..1171f2d 100644 --- a/dashboard/src/app/dashboard/dashboard.component.css +++ b/dashboard/src/app/dashboard/dashboard.component.css @@ -34,5 +34,44 @@ border-radius: 50%; background-color: #9b59b6; margin: 0 auto; - +} + +/* Style for autocompletion */ +/* Stolen from https://ng-bootstrap.github.io/#/components/typeahead/examples */ +::ng-deep .dropdown-item { + display: block; + width: 100%; + padding: .25rem 1.5rem; + clear: both; + font-weight: 400; + color: #212529; + text-align: inherit; + white-space: nowrap; + background-color: transparent; + border: 0 +} + +::ng-deep .dropdown-item:focus, +::ng-deep .dropdown-item:hover { + color: #16181b; + text-decoration: none; + background-color: #f8f9fa +} + +::ng-deep .dropdown-item.active, +::ng-deep .dropdown-item:active { + color: #fff; + text-decoration: none; + background-color: #007bff +} + +::ng-deep .dropdown-item.disabled, +::ng-deep .dropdown-item:disabled { + color: #6c757d; + pointer-events: none; + background-color: transparent +} + +::ng-deep .dropdown-menu.show { + display: block } diff --git a/dashboard/src/app/dashboard/dashboard.component.html b/dashboard/src/app/dashboard/dashboard.component.html index 4525a5f..1d07c6b 100644 --- a/dashboard/src/app/dashboard/dashboard.component.html +++ b/dashboard/src/app/dashboard/dashboard.component.html @@ -77,6 +77,14 @@ + + + + +   + + +